This repository has been archived by the owner on Feb 22, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 146
/
local.yml
172 lines (159 loc) · 4.31 KB
/
local.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
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
version: '2.1'
volumes:
postgres_data_dev: {}
services:
postgres:
image: postgres:9.6
volumes:
- postgres_data_dev:/var/lib/postgresql/data
environment:
- POSTGRES_USER=concepttoclinic
base:
build:
context: .
dockerfile: ./compose/base/Dockerfile-dev
container_name: base
image: concepttoclinic_base
interface:
build:
context: .
dockerfile: ./compose/interface/Dockerfile-dev-api
command: /start-dev.sh
depends_on:
- postgres
- base
- prediction
environment:
- POSTGRES_USER=concepttoclinic
- USE_DOCKER=yes
- SECRET_KEY=notverysecret
- DEBUG=True
- DJANGO_SETTINGS_MODULE=config.settings.local
volumes:
- ./interface/:/app:cached
- ./tests/assets/test_image_data/small:/images:cached
- ./.git/logs/HEAD:/HEAD:cached
- ./prediction/src/algorithms/classify/assets/:/classify_models:cached
ports:
- "8000:8000"
vue:
build:
context: .
dockerfile: ./compose/interface/Dockerfile-dev-vue
command: npm run dev
depends_on:
- interface
volumes:
- ./interface/frontend/src:/app/src:cached
- ./interface/frontend/build:/app/build:cached
- ./interface/frontend/config:/app/config:cached
- ./interface/frontend/dist:/app/dist:cached
- ./interface/frontend/static:/app/static:cached
- ./interface/frontend/test:/app/test:cached
- ./.git/logs/HEAD:/app/HEAD:cached
links:
- interface
ports:
- "8080:8080"
vue_unit_test:
build:
context: .
dockerfile: ./compose/interface/Dockerfile-unit-test-vue
command: npm run unit
depends_on:
- vue
environment:
NODE_ENV: test
volumes:
- ./interface/frontend/src:/app/src:cached
- ./interface/frontend/test:/app/test:cached
vue_e2e_test:
build:
context: .
dockerfile: ./compose/interface/Dockerfile-e2e-test-vue
command: npm run e2e
environment:
NODE_ENV: test
volumes:
- ./interface/frontend/src:/app/src:cached
- ./interface/frontend/test:/app/test:cached
depends_on:
- vue
- selenium_hub
- chrome
- firefox
selenium_hub:
image: selenium/hub
environment:
GRID_BROWSER_TIMEOUT: 120000
GRID_TIMEOUT: 120000
VIRTUAL_HOST: selenium.hub.docker
ports:
- "4444:4444"
firefox:
image: selenium/node-firefox
environment: &SELENIUM_NODE_ENV
# this is a necessary workaround due to a known bug
# https://github.com/SeleniumHQ/docker-selenium/issues/133
HUB_PORT_4444_TCP_ADDR: selenium_hub
HUB_PORT_4444_TCP_PORT: 4444
depends_on:
- selenium_hub
chrome:
image: selenium/node-chrome
environment:
<<: *SELENIUM_NODE_ENV
depends_on:
- selenium_hub
prediction:
build:
context: .
dockerfile: ./compose/prediction/Dockerfile-dev
command: python -m flask run --host=0.0.0.0 --port=8001
depends_on:
- base
environment:
- FLASK_DEBUG=1
- FLASK_APP=src/factory.py
- LC_ALL=C.UTF-8
- LANG=C.UTF-8
- RUN_SLOW_TESTS=false
- TESTS_TIMEOUT=1
volumes:
- ./prediction/:/app:cached
- ./tests/assets/test_image_data/small:/images:cached
- ./tests/assets/test_image_data/full:/images_full:cached
- ./prediction/src/algorithms/classify/assets/:/classify_models:cached
- ./prediction/src/algorithms/identify/assets/:/identify_models:cached
- ./data/:/app/data:cached
ports:
- "8001:8001"
compile_docs:
depends_on:
- postgres
- base
environment:
- POSTGRES_USER=concepttoclinic
- USE_DOCKER=yes
- SECRET_KEY=notverysecret
- DEBUG=True
- DJANGO_SETTINGS_MODULE=config.settings.local
build:
context: .
dockerfile: ./compose/documentation/Dockerfile-dev
volumes:
- ./:/app:cached
command: bash -c "source compose/interface/entrypoint.sh && make -C /app/docs html"
documentation:
build:
context: .
dockerfile: ./compose/documentation/Dockerfile-dev
depends_on:
- compile_docs
working_dir: /app/docs/_build/html
volumes:
- ./docs/_build/html:/app/docs/_build/html:cached
- ./:/app:cached
command: python -m http.server
ports:
- "8002:8000"