-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
62 lines (61 loc) · 1.32 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
version: '3.4'
services:
web:
build:
context: .
target: dev
env_file: docker.env
environment:
- DJANGO_SETTINGS_MODULE=${DJANGO_SETTINGS_MODULE:-creator.settings.testing}
# Options are: DATASERVICE, url of dataservice, or FAKE
- PRELOAD_DATA=${PRELOAD_DATA:-FAKE}
- DEVELOPMENT_ENDPOINTS
- DEBUG
- DEVELOP
volumes:
- .:/app
ports:
- '5002:8080'
depends_on:
- postgres
- redis
worker:
build:
context: .
target: dev
command: '/app/bin/dev_worker.sh'
volumes:
- ./:/app/
env_file: docker.env
environment:
- DJANGO_SETTINGS_MODULE=${DJANGO_SETTINGS_MODULE:-creator.settings.testing}
depends_on:
- postgres
- redis
- web
scheduler:
build:
context: .
target: dev
command: './manage.py rqscheduler -i 5'
volumes:
- ./:/app/
env_file: docker.env
environment:
- DJANGO_SETTINGS_MODULE=${DJANGO_SETTINGS_MODULE:-creator.settings.testing}
depends_on:
- postgres
- redis
- web
postgres:
image: postgres:11.1
environment:
- POSTGRES_DB=study-creator
- POSTGRES_USER=study-creator
- POSTGRES_PASSWORD=password
redis:
image: redis:latest
networks:
default:
external:
name: kf-data-stack