-
Notifications
You must be signed in to change notification settings - Fork 11
/
docker-compose-production.yml
62 lines (56 loc) · 1.27 KB
/
docker-compose-production.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
version: "3"
services:
db:
image: postgres:14.3-alpine
environment:
POSTGRES_DB: coyote
POSTGRES_PASSWORD: postgres
expose:
- 5432
volumes:
- db:/var/lib/postgresql/data
redis:
image: redis:7.0.0-alpine3.16
web: &rails
build:
args:
bundle_without: "development test"
database_url: postgresql://postgres:postgres@db:5432/
env: "production"
context: .
command: bundle exec rails server -b 0.0.0.0
depends_on:
- db
- worker
entrypoint: ./bin/docker_entrypoint
environment:
- RAILS_BASE_KEY
- RAILS_MASTER_KEY
- RAILS_STAGING_KEY
- RAILS_LOG_TO_STDOUT
- STAGING
- APPSIGNAL_APP_ENV
- HOST
- MAILER_PASSWORD
- BOOTSNAP_CACHE_DIR=/bundle/bootsnap
- DATABASE_URL=postgresql://postgres:postgres@db:5432/
- NODE_ENV=${NODE_ENV:-production}
- RAILS_ENV=${RAILS_ENV:-production}
- REDIS_URL=redis://redis:6379/
- WEBPACKER_DEV_SERVER_HOST=webpacker
- WEB_CONCURRENCY=1
ports:
- "3000:3000"
stdin_open: true
tmpfs:
- /tmp
tty: true
volumes: []
worker:
<<: *rails
command: bundle exec sidekiq
depends_on:
- redis
ports: []
volumes:
db: