-
Notifications
You must be signed in to change notification settings - Fork 3
/
compose.yml
36 lines (36 loc) · 937 Bytes
/
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
services:
web:
build: .
command: gunicorn --bind 0.0.0.0:5000 -w 4 --access-logfile - --error-logfile - govuk-frontend-flask:app
restart: always
environment:
- CONTACT_EMAIL=[contact email]
- CONTACT_PHONE=[contact phone]
- DEPARTMENT_NAME=[name of department]
- DEPARTMENT_URL=[url of department]
- REDIS_URL=redis://redis:6379
- SECRET_KEY=4f378500459bb58fecf903ea3c113069f11f150b33388f56fc89f7edce0e6a84
- SERVICE_NAME=[name of service]
- SERVICE_PHASE=[phase]
- SERVICE_URL=[url of service]
volumes:
- static_volume:/home/appuser/app/static:rw
expose:
- 5000
depends_on:
- redis
redis:
image: redis:7-alpine
restart: always
expose:
- 6379
nginx:
build: ./nginx
volumes:
- static_volume:/home/appuser/app/static:ro
ports:
- 443:443
depends_on:
- web
volumes:
static_volume: