-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
73 lines (67 loc) · 1.54 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
67
68
69
70
71
72
web:
image: unicef/equitrack:develop
command: python manage.py runserver
volumes:
- ./EquiTrack:/code
ports:
- "8080:8080"
links:
- db
- redis
# - sync-gateway
environment:
- REDIS_URL=redis://redis:6379/0
- DATABASE_URL=postgis://postgres:password@db:5432/postgres
- DJANGO_SETTINGS_MODULE=EquiTrack.settings.base
- DJANGO_DEBUG=true
- COUCHBASE_URL=http://sync-gateway:4984/default
env_file:
- env_prod
worker:
image: unicef/equitrack:develop
command: python manage.py celery worker -E --loglevel=info
links:
- db
- redis
environment:
- REDIS_URL=redis://redis:6379/0
- DATABASE_URL=postgis://postgres:password@db:5432/postgres
beater:
image: unicef/equitrack:develop
command: python manage.py celery beat --loglevel=info
links:
- db
- redis
environment:
- REDIS_URL=redis://redis:6379/0
- DATABASE_URL=postgis://postgres:password@db:5432/postgres
db:
image: mdillon/postgis:9.4
environment:
- POSTGRES_HOST=db
- POSTGRES_PORT=5432
- POSTGRES_NAME=postgres
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=password
volumes:
- ./db_dumps:/tmp/db_dumps
redis:
image: redis
#couchbase:
# image: couchbase/server:community-4.0.0
# ports:
# - 8091:8091
# - 8092:8092
# - 8093:8093
# - 18091:18091
#
#sync-gateway:
# image: couchbase/sync-gateway
# command: sync-gateway.json
# volumes:
# - ./couchbase/sync-gateway.json:/sync-gateway.json
# links:
# - couchbase:couchbase
# ports:
# - 4984:4984
# - 4985:4985