-
Notifications
You must be signed in to change notification settings - Fork 16
/
docker-compose.production.yml
62 lines (56 loc) · 1.31 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.7"
x-env_files:
&default_env_files
- .env.production.local
- .env.local
- .env.production
services:
dependencies:
build:
context: .
target: dependencies
image: local/dfe-teachers-payment-service:web-dependencies
web:
build:
context: .
cache_from:
- local/dfe-teachers-payment-service:web-dependencies
target: web
command: bash -c "rm -f tmp/pids/server.pid && bundle exec rails s -b 'ssl://0.0.0.0:3000?key=localhost.key&cert=localhost.crt'"
image: local/dfe-teachers-payment-service:web
depends_on:
- dependencies
- db
env_file: *default_env_files
ports:
- "3000:3000"
tty: true
stdin_open: true
volumes:
- .:/app
- assets:/app/public/assets
delayed_job:
build:
context: .
cache_from:
- local/dfe-teachers-payment-service:web-dependencies
- dfedigital/teacher-payments-service:web
target: web
command: bin/start-worker
image: local/dfe-teachers-payment-service:web
depends_on:
- web
environment:
WORKER_COUNT: 4
env_file: *default_env_files
volumes:
- .:/app
db:
image: postgres
volumes:
- db-data:/var/lib/postgresql/data
environment:
POSTGRES_PASSWORD: password
volumes:
assets:
db-data: