-
Notifications
You must be signed in to change notification settings - Fork 8
/
docker-compose-common.yml
107 lines (94 loc) · 2.09 KB
/
docker-compose-common.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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
version: '2'
services:
# data only container pattern
datadev:
image: debian:jessie
volumes:
- .:/app
- ./data/dev:/data
datatest:
image: debian:jessie
volumes:
- .:/app
- ./data/tests:/data
dataprodselenium:
image: debian:jessie
volumes:
- .:/app
- ./data/selenium/prod:/data
datadevselenium:
image: debian:jessie
volumes:
- .:/app
- ./data/selenium/dev:/data
jasper:
image: muccg/jasper-reports-server:6.1.1
command: development
ports:
- "8080"
environment:
- DB_HOST=db
- DB_PORT=5432
- DB_NAME=webapp
- DB_USERNAME=webapp
- DB_PASSWORD=webapp
- WAIT_FOR_DB=1
db:
image: muccg/postgres-ssl:10.6
environment:
- POSTGRES_USER=webapp
- POSTGRES_PASSWORD=webapp
ports:
- "5432"
rediscache:
image: redis:3-alpine
command: ["redis-server", "--appendonly", "yes"]
environment:
- REDIS_DISABLE_COMMANDS=FLUSHDB,FLUSHALL
volumes:
- ./data/redis:/data
cache:
image: memcached:1.4
triplestore:
image: muccg/allegro:4.14.1
ports:
- "10035"
nginx:
image: muccg/nginx-uwsgi:1.10
ports:
- "8443:443"
- "8080:80"
volumes:
- ./data/nginx:/data
runserver:
image: muccg/rdrf-dev
environment:
- WAIT_FOR_DB=1
- WAIT_FOR_CLINICAL_DB=1
- PRODUCTION=0
- WAIT_FOR_REPORTING_DB=1
- WAIT_FOR_CACHE=1
- DEIDENTIFIED_SITE_ID=testing
- DJANGO_MAILGUN_API_KEY=${DJANGO_MAILGUN_API_KEY}
#- USE_CELERY=1
celeryworker:
image: muccg/rdrf-dev
command: celery_worker
environment:
- WAIT_FOR_DB=1
- WAIT_FOR_REDIS_CACHE=1
uwsgi:
image: muccg/rdrf-dev
command: uwsgi_local
environment:
- WAIT_FOR_DB=1
- WAIT_FOR_CLINICAL_DB=1
- WAIT_FOR_REPORTING_DB=1
- WAIT_FOR_CACHE=1
- WAIT_FOR_RUNSERVER=1
# note: important to wait for runserver in dev as both will attempt to syncdb etc
ports:
- "9000:9000"
- "9001:9001"
- "9100:9100"
- "9101:9101"