-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdocker-compose.prod.yml
More file actions
85 lines (84 loc) · 1.88 KB
/
docker-compose.prod.yml
File metadata and controls
85 lines (84 loc) · 1.88 KB
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
version: '2'
services:
nginx:
build: nginx/
image: noomz/podd-nginx:latest
links:
- api
ports:
- 8000:80
volumes:
- ${PODD_API_DIR}:/usr/src/app
api:
build:
context: ${PODD_API_DIR}
dockerfile: Dockerfile-production
image: noomz/podd-api:latest
env_file:
- ./env/podd_api.sh
environment:
- PODD_DJANGO_SECRET_KEY=${PODD_DJANGO_SECRET_KEY}
- PODD_RAVEN_DSN=${PODD_RAVEN_DSN}
ports:
- 9001
volumes:
- ${PODD_API_DIR}:/usr/src/app
links:
- redis
- postgres
- neo4j
- elasticsearch
- cep
celery_worker:
image: noomz/podd-api:latest
command: celery worker -A podd -l INFO
env_file:
- ./env/podd_api.sh
- ./env/podd_api_celery.sh
environment:
- PODD_DJANGO_SECRET_KEY=${PODD_DJANGO_SECRET_KEY}
- PODD_RAVEN_DSN=${PODD_RAVEN_DSN}
volumes:
- ${PODD_API_DIR}:/usr/src/app
celery_beat:
image: noomz/podd-api:latest
command: celery beat -A podd -l INFO
env_file:
- ./env/podd_api.sh
- ./env/podd_api_celery.sh
environment:
- PODD_DJANGO_SECRET_KEY=${PODD_DJANGO_SECRET_KEY}
- PODD_RAVEN_DSN=${PODD_RAVEN_DSN}
volumes:
- ${PODD_API_DIR}:/usr/src/app
cep:
build: podd_cep/
image: noomz/podd-cep:latest
redis:
image: redis
postgres:
image: mdillon/postgis
ports:
- 5432:5432
env_file:
- ./env/postgres.sh
volumes:
- podd_postgres:/var/lib/postgresql/data/pgdata
elasticsearch:
build: podd_elasticsearch
image: noomz/elasticsearch:1.7
volumes:
- podd_elasticsearch:/usr/share/elasticsearch/data/
neo4j:
image: neo4j
volumes:
- podd_neo4j:/data/
environment:
- NEO4J_AUTH=none
volumes:
podd_postgres:
external: false
podd_elasticsearch:
external: false
podd_neo4j:
external: false