forked from eresearchqut/trrf
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose-prod-with-local-db.yml
66 lines (61 loc) · 1.32 KB
/
docker-compose-prod-with-local-db.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.7"
volumes:
db_data:
clinicaldb_data:
reportingdb_data:
services:
db:
image: postgres:10.7
restart: always
environment:
- POSTGRES_USER
- POSTGRES_PASSWORD
volumes:
- db_data:/var/lib/postgresql/data
expose:
- "5432"
clinicaldb:
image: postgres:10.7
restart: always
environment:
- POSTGRES_USER
- POSTGRES_PASSWORD
volumes:
- clinicaldb_data:/var/lib/postgresql/data
expose:
- "5432"
reportingdb:
image: postgres:10.7
restart: always
environment:
- POSTGRES_USER
- POSTGRES_PASSWORD
volumes:
- reportingdb_data:/var/lib/postgresql/data
expose:
- "5432"
application:
build:
context: .
dockerfile: docker/production/Dockerfile
image: trrf-application
restart: always
command: uwsgi_ssl
environment:
- LOGIN_PAGE_MESSAGE=This is a demo instance. No personal or private data should be entered
- TIME_ZONE
- POSTGRES_USER
- POSTGRES_PASSWORD
- DBUSER=${POSTGRES_USER}
- DBPASS=${POSTGRES_PASSWORD}
env_file:
- docker/production/envs/prod-local-db
- docker/production/envs/uwsgi
ports:
- 443:9443
volumes:
- ./data/prod/:/data
depends_on:
- db
- clinicaldb
- reportingdb