-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
66 lines (60 loc) · 1.37 KB
/
docker-compose.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
63
64
65
66
version: '3.9'
services:
redis:
image: redis:6.0-alpine
networks:
- gtrp
ports:
- 6379:6379
database:
image: postgres:15-alpine
networks:
- gtrp
environment:
- POSTGRES_USER=gtrp
- POSTGRES_PASSWORD=gtrp
- POSTGRES_DB=get_an_international_relocation_payment_development
ports:
- 5432:5432
app: &app
build:
context: .
args:
- COMMIT_SHA=shafoo
- GOVUK_NOTIFY_API_KEY
- GOVUK_NOTIFY_GENERIC_EMAIL_TEMPLATE_ID
networks:
- gtrp
depends_on: [ database, redis ]
ports:
- 3000:3000
environment:
- DATABASE_URL=postgresql://gtrp:gtrp@database/get_an_international_relocation_payment_development
- REDIS_URL=redis://redis
- RAILS_ENV=production
- SECRET_KEY_BASE=123476927954
- RAILS_SERVE_STATIC_FILES=true
env_file:
- .env
worker:
<<: *app
ports:
- 3001:3001
command: ./bin/worker-startup.sh
nginx:
image: nginx:1.25
networks:
- gtrp
depends_on: [ app ]
ports:
- 443:443
- 80:80
environment:
- BACKEND_HOST=app
- BACKEND_PORT=3000
volumes:
- ./nginx/nginx.conf.template:/etc/nginx/templates/default.conf.template:ro
- ./nginx/cert.pem:/etc/ssl/certs/site.crt
- ./nginx/key.pem:/etc/ssl/private/site.dec.key
networks:
gtrp: