forked from uktrade/data-hub-api
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
52 lines (46 loc) · 1.12 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
version: '2'
services:
api:
build:
context: .
ports:
- "8000:8000"
volumes:
- .:/app
entrypoint: dockerize -wait tcp://postgres:5432 -wait tcp://mi-postgres:5432 -wait tcp://es:9200 -wait tcp://redis:6379 -timeout 120s
env_file: .env
depends_on:
- postgres
- mi-postgres
- es
- redis
- celery
command: /app/start.sh
celery:
build:
context: .
volumes:
- .:/app
entrypoint: dockerize -wait tcp://postgres:5432 -wait tcp://mi-postgres:5432 -wait tcp://es:9200 -wait tcp://redis:6379 -wait tcp://api:8000 -timeout 180s
env_file: .env
command: watchmedo auto-restart -d . -R -p '*.py' -- celery worker -A config -l info -Q celery -B
postgres:
image: postgres:10
restart: always
environment:
- POSTGRES_DB=datahub
mi-postgres:
image: postgres:9.6
restart: always
environment:
- POSTGRES_DB=mi
es:
image: docker.elastic.co/elasticsearch/elasticsearch:6.8.2
restart: always
ports:
- "9200:9200"
redis:
image: redis:3.2
restart: always
ports:
- "6379:6379"