-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathdocker-compose.yml
140 lines (140 loc) · 3.71 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
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
version: "3.4"
services:
data-analysis-notebook:
image: docker.bayesimpact.org/bob-emploi/notebooks:${DOCKER_TAG:-latest}
build:
context: data_analysis
dockerfile: Dockerfile.notebooks
ports:
- "8888:8888"
volumes:
- ./data_analysis/data:/home/jovyan/data:rw
- ./analytics/data:/home/jovyan/data_analytics:ro
# TODO(cyrille): Try to link to current python version.
- ./data_analysis:/opt/conda/lib/python3.9/bob_emploi/data_analysis:ro
- ./data_analysis/notebooks:/home/jovyan/notebooks
environment:
AIRTABLE_API_KEY:
DATA_FOLDER: '/home/jovyan/data'
CUSTOM_DISPLAY_URL: 'http://localhost:8888'
data-analysis-prepare:
image: docker.bayesimpact.org/bob-emploi/data-analysis-prepare:${DOCKER_TAG:-latest}
build:
args:
- SKIP_TEST
context: .
dockerfile: data_analysis/Dockerfile.prepare
environment:
AIRTABLE_API_KEY:
ALGOLIA_API_KEY:
BOB_PLUGINS:
EMPLOI_STORE_CLIENT_ID:
EMPLOI_STORE_CLIENT_SECRET:
MAILJET_APIKEY_PUBLIC:
MAILJET_SECRET:
REQUIRED_LOCALES:
tty: true
frontend-db:
build: frontend/server/db
ports:
- "27016:27017"
frontend-dev: &dev
image: bayesimpact/bob-emploi-dev:${DOCKER_TAG:-latest}
build:
context: .
dockerfile: frontend/client/Dockerfile
target: dev
args:
- AIRTABLE_API_KEY
- FAIL_ON_MISSING_TRANSLATIONS
- REACT_BASE_TAG
command: npm start
entrypoint: ./entrypoint.sh
tty: true
links:
- frontend-flask
environment:
BOB_DEPLOYMENT:
BOB_DEPLOYMENTS:
BOB_PLUGINS:
frontend-test:
image: bayesimpact/bob-emploi-test:${DOCKER_TAG:-latest}
build:
context: .
dockerfile: frontend/client/Dockerfile
target: test
args:
- AIRTABLE_API_KEY
- FAIL_ON_MISSING_TRANSLATIONS
- REACT_BASE_TAG
- SKIP_TEST
tty: true
environment:
BOB_DEPLOYMENT:
BOB_PLUGINS:
network_mode: none
dev: *dev
frontend-flask:
build:
context: .
dockerfile: frontend/server/Dockerfile
target: server
args:
- AIRTABLE_API_KEY
- GIT_SHA1
image: bayesimpact/bob-emploi-frontend-server:${DOCKER_TAG:-latest}
environment:
BOB_PLUGINS:
MONGO_URL:
USERS_MONGO_URL: 'mongodb://frontend-db/test'
EVAL_MONGO_URL:
DEBUG: '1'
SERVER_VERSION: dev.$USER
EMPLOI_STORE_CLIENT_ID:
EMPLOI_STORE_CLIENT_SECRET:
LINKED_IN_CLIENT_ID:
LINKED_IN_CLIENT_SECRET:
MAILJET_SECRET:
SENTRY_DSN:
SLACK_FEEDBACK_URL:
SLACK_FEEDBACK_WEBHOOK_URL:
SLACK_VOLUNTEER_FEEDBACK_CHANNEL:
ELASTICSEARCH_URL: 'http://elastic:changeme@elastic-dev:9200'
EMAILS_FOR_EVALUATIONS:
links:
- frontend-db
frontend-flask-test:
build:
args:
- AIRTABLE_API_KEY
- SKIP_STRINGS_EXTRACT
- SKIP_TEST
context: .
dockerfile: frontend/server/Dockerfile
target: test
image: bayesimpact/bob-emploi-frontend-server-test:${DOCKER_TAG:-latest}
environment:
MONGO_URL: 'mongodb://frontend-db/test'
DEBUG: '1'
SERVER_VERSION: local-test
TEST_ENV: '1'
tty: true
network_mode: none
frontend-monitoring:
image: docker.bayesimpact.org/bob-emploi/frontend-monitoring:${DOCKER_TAG:-latest}
build:
args:
- SKIP_TEST
context: .
dockerfile: frontend/monitoring/Dockerfile
mailjet:
build:
args:
- SKIP_TEST
context: .
dockerfile: frontend/mailjet/Dockerfile
entrypoint: ./entrypoint.sh
environment:
MAILJET_APIKEY_PUBLIC:
MAILJET_SECRET:
RECIPIENT: