-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
110 lines (109 loc) · 2.87 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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
version: '3.4'
services:
web:
image: kfdrc/kf-api-study-creator:latest
env_file: docker.env
environment:
- DATASERVICE_URL=http://dataservice
- FEAT_DATASERVICE_CREATE_STUDIES=True
- FEAT_DATASERVICE_UPDATE_STUDIES=True
- ALLOWED_HOSTS=web
- DJANGO_SETTINGS_MODULE=creator.settings.development
- PG_HOST=postgres
# Options are: DATASERVICE, url of dataservice, or FAKE
- PRELOAD_DATA=FAKE
- DEVELOPMENT_ENDPOINTS=True
- DEVELOP=True
- EMAIL_HOST=email
- EMAIL_PORT=1025
ports:
- '5002:8080'
depends_on:
- postgres
- redis
worker:
image: kfdrc/kf-api-study-creator:latest
env_file: docker.env
command: '/app/bin/dev_worker.sh'
environment:
- DJANGO_SETTINGS_MODULE=creator.settings.development
depends_on:
- postgres
- redis
- web
scheduler:
image: kfdrc/kf-api-study-creator:latest
env_file: docker.env
command: './manage.py rqscheduler -i 5'
environment:
- DJANGO_SETTINGS_MODULE=creator.settings.development
depends_on:
- postgres
- redis
- web
postgres:
image: circleci/postgres:11.1
env_file: docker.env
environment:
- POSTGRES_DB=study-creator
- POSTGRES_USER=study-creator
- POSTGRES_PASSWORD=password
redis:
image: circleci/redis:latest
app:
image: circleci/node:11.12.0
command: bash -c 'cd /app && yarn start'
ports:
- 3000:3000
environment:
- REACT_APP_STUDY_API=http://web:8080
- REACT_APP_AUTH0_DOMAIN=kids-first.auth0.com
- REACT_APP_AUTH0_CLIENT_ID=00000000000000000000000000000000
- REACT_APP_AUTH0_REDIRECT_URI=http://app:3000/callback
- REACT_APP_AUTH0_AUD=https://kf-study-creator.kidsfirstdrc.org
- SKIP_PREFLIGHT_CHECK=true
volumes:
- bundle:/app
cypress:
image: cypress/browsers:node13.6.0-chrome80-ff72
container_name: cypress
environment:
- CYPRESS_baseUrl=http://app:3000
- CYPRESS_REACT_APP_STUDY_API=http://web:8080
- CYPRESS_DEV_ENDPOINT=http://web:8080/__dev
depends_on:
- app
- web
- worker
- scheduler
- postgres
- redis
command: /bin/bash -c 'yarn run cypress install && yarn run cypress run --browser chrome'
working_dir: /app
volumes:
- bundle:/app
dataservice:
image: kfdrc/kf-api-dataservice:latest
command: /bin/ash -c "sleep 5; ./bin/run.sh"
environment:
- FLASK_CONFIG=development
- PG_NAME=dataservice
- PG_HOST=dataservice-pg
depends_on:
- dataservice-pg
dataservice-pg:
image: circleci/postgres:11.1
environment:
- POSTGRES_DB=dataservice
email:
image: reachfive/fake-smtp-server
env_file: docker.env
ports:
- '1080:1080'
networks:
default:
external:
name: kf-data-stack
volumes:
bundle:
external: true