-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
52 lines (50 loc) · 1.13 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: '3.5'
services:
pg:
image: postgres:12
environment:
- POSTGRES_DB=coordinator
- POSTGRES_PASSWORD=password
redis:
image: redis:latest
coordinator:
build:
context: .
target: dev
image: coordinator:latest
command: '/app/bin/dev_entrypoint.sh'
volumes:
- ./:/app/
env_file: docker.env
ports:
- '5001:5000'
environment:
- DJANGO_SETTINGS_MODULE=${DJANGO_SETTINGS_MODULE:-coordinator.settings.testing}
- PRELOAD_DATA=FAKE
depends_on:
- pg
- redis
worker:
build:
context: .
target: dev
image: coordinator:latest
command: '/app/bin/dev_worker.sh'
env_file: docker.env
volumes:
- ./:/app/
environment:
- DJANGO_SETTINGS_MODULE=${DJANGO_SETTINGS_MODULE:-coordinator.settings.testing}
depends_on:
- pg
- redis
- coordinator
scheduler:
image: tutum/curl:latest
command: /bin/bash -c "while true; do sleep 10; curl -s -XPOST coordinator/task-services/health_checks; done"
depends_on:
- coordinator
networks:
default:
external:
name: kf-data-stack