-
Notifications
You must be signed in to change notification settings - Fork 15
/
docker-compose.override.yml
165 lines (164 loc) · 7.69 KB
/
docker-compose.override.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
# Overrides of Compose services used to help develop faster without rebuilding
# the container on every change.
version: "3.4"
services:
bazel:
image: bayesimpact/circleci
entrypoint: ["bazel"]
working_dir: /usr/app
volumes:
- .:/usr/app
- /tmp/bazel-docker-cache:/tmp/bazel-cache
frontend-flask:
command: python bob_emploi/frontend/server/server.py
entrypoint: ./entrypoint.sh
volumes:
- ./frontend/api:/work/bob_emploi/frontend/api
- ./frontend/server:/work/bob_emploi/frontend/server
- ./frontend/server/entrypoint.sh:/work/entrypoint.sh:ro
- ./common/python:/work/bob_emploi/common/python:ro
environment:
BOB_DEPLOYMENT:
frontend-flask-test:
entrypoint: ./entrypoint.sh
volumes:
- ./frontend/api:/work/bob_emploi/frontend/api
- ./frontend/server:/work/bob_emploi/frontend/server
- ./frontend/server/.coveragerc:/work/.coveragerc:ro
- ./frontend/server/entrypoint.sh:/work/entrypoint.sh:ro
- ./frontend/server/lint_and_test.sh:/work/lint_and_test.sh:ro
- ./common/python:/work/bob_emploi/common/python:ro
- ./.pylintrc:/work/.pylintrc:ro
- ./.pycodestyle:/work/setup.cfg:ro
data-analysis-prepare:
environment:
BOB_DEPLOYMENT:
TEST_ENV: 1
# Run cleaned_data_test on real data.
TEST_REAL_DATA: 1
MONGO_URL: $IMPORTER_MONGO_URL
entrypoint: ./entrypoint.sh
volumes:
- /tmp/bob_emploi:/tmp/bob_emploi
- ./data_analysis:/work/bob_emploi/data_analysis
- ./data_analysis/data:/work/data
- ./.pycodestyle:/work/setup.cfg:ro
- ./.pylintrc:/work/.pylintrc:ro
- ./data_analysis/.coveragerc:/work/.coveragerc:ro
- ./data_analysis/entrypoint.sh:/work/entrypoint.sh:ro
- ./data_analysis/lint_and_test.sh:/work/lint_and_test.sh:ro
- ./data_analysis/Makefile:/work/Makefile:ro
- ./data_analysis/Makefile.internal:/work/Makefile.internal:ro
- ./data_analysis/Makefile.public:/work/Makefile.public:ro
- ./common/python:/work/bob_emploi/common/python:ro
- ./frontend/client/airtable_fields.json5:/work/bob_emploi/frontend/client/airtable_fields.json5:ro
- ./frontend/server:/work/bob_emploi/frontend/server
- ./frontend/release/scheduled-tasks:/work/bob_emploi/frontend/release/scheduled-tasks:ro
- ./frontend/api:/work/bob_emploi/frontend/api
- ~/.aws/credentials:/root/.aws/credentials:ro
- ./frontend/server/db/fixtures:/work/fixtures:rw
frontend-dev: &dev
volumes:
- /tmp/bob_emploi:/tmp/bob_emploi
- ./frontend/api:/usr/app/bob_emploi/frontend/api
- ./frontend/client/cfg:/usr/app/cfg:ro
- ./frontend/client/plugins:/usr/app/plugins
- ./frontend/client/ssl:/etc/ssl/webpack-dev:ro
- ./frontend/client/server.ts:/usr/app/server.ts:ro
- ./frontend/client/.babelrc:/usr/app/.babelrc:ro
- ./frontend/client/build_dist.ts:/usr/app/build_dist.ts:ro
- ./frontend/client/extract_i18n.ts:/usr/app/extract_i18n.ts:ro
- ./frontend/client/i18n.babelrc.js:/usr/app/i18n.babelrc.js:ro
- ./frontend/client/src:/usr/app/src
- ./frontend/client/node:/usr/app/node
- ./frontend/client/custom.d.ts:/usr/app/custom.d.ts:ro
- ./frontend/client/airtable_fields.json5:/usr/app/airtable_fields.json5
- ./frontend/client/entrypoint.sh:/usr/app/entrypoint.sh:ro
- ./frontend/client/package.json:/usr/app/package.json:ro
- ./frontend/client/tsconfig.json:/usr/app/tsconfig.json:ro
- ./frontend/release:/usr/app/release:ro
- ./frontend/client/src/translations/fr/vision.txt:/usr/app/i18n/translations/fr/vision.txt:ro
- ./frontend/client/src/translations/en/vision.txt:/usr/app/i18n/translations/en/vision.txt:ro
# For linting.
- ./.eslintrc.json:/usr/app/.eslintrc.json:ro
- ./.eslintignore:/usr/app/.eslintignore:ro
- ./frontend/client/webpack.eslintrc.json:/usr/app/webpack.eslintrc.json:ro
# For releasing.
- ./frontend/dist:/usr/app/dist
# TODO(pascal): Drop this once https://github.com/arthurbergmz/webpack-pwa-manifest/pull/150 gets released.
- ./frontend/client/vendor/webpack-pwa-manifest.d.ts:/usr/app/node_modules/webpack-pwa-manifest/index.d.ts
environment:
AIRTABLE_API_KEY:
BOB_PLUGINS: ${BOB_PLUGINS:-core}
CLIENT_VERSION:
PUBLIC_HOST: localhost.bob-dev.bayes.org
PUBLIC_PORT: 3000
ports:
- "${PUBLIC_PORT:-3000}:80"
dev: *dev
frontend-test:
volumes:
- /tmp/bob_emploi:/tmp/bob_emploi
- ./frontend/api:/usr/app/bob_emploi/frontend/api
- ./frontend/client/cfg:/usr/app/cfg:ro
- ./frontend/client/plugins:/usr/app/plugins
- ./frontend/client/ssl:/etc/ssl/webpack-dev:ro
- ./frontend/client/server.ts:/usr/app/server.ts:ro
- ./frontend/client/.babelrc:/usr/app/.babelrc:ro
- ./frontend/client/build_dist.ts:/usr/app/build_dist.ts:ro
- ./frontend/client/extract_i18n.ts:/usr/app/extract_i18n.ts:ro
- ./frontend/client/i18n.babelrc.js:/usr/app/i18n.babelrc.js:ro
- ./frontend/client/src:/usr/app/src
- ./frontend/client/node:/usr/app/node
- ./frontend/client/check_color_config.ts:/usr/app/check_color_config.ts:ro
- ./frontend/client/custom.d.ts:/usr/app/custom.d.ts:ro
- ./frontend/client/config.ts:/usr/app/config.ts:ro
- ./frontend/client/jsonlint.sh:/usr/app/jsonlint.sh
- ./frontend/client/airtable_fields.json5:/usr/app/airtable_fields.json5
- ./frontend/client/entrypoint.sh:/usr/app/entrypoint.sh:ro
- ./frontend/client/package.json:/usr/app/package.json:ro
- ./frontend/client/check_types.ts:/usr/app/check_types.ts
- ./frontend/client/tsconfig.json:/usr/app/tsconfig.json:ro
- ./frontend/release:/usr/app/release:ro
# For linting.
- ./.eslintrc.json:/usr/app/.eslintrc.json:ro
- ./.eslintignore:/usr/app/.eslintignore:ro
- ./frontend/client/webpack.eslintrc.json:/usr/app/webpack.eslintrc.json:ro
# For testing.
- ./frontend/client/test:/usr/app/test
- ./frontend/client/karma.conf.ts:/usr/app/karma.conf.ts:ro
- ./frontend/client/karma_start.ts:/usr/app/karma_start.ts:ro
# This is actually part of the frontend-db, but it makes it way easier to
# lint with the same rules.
- ./frontend/server/db:/usr/app/server/db:ro
- ./frontend/client/vendor/webpack-pwa-manifest.d.ts:/usr/app/node_modules/webpack-pwa-manifest/index.d.ts
frontend-monitoring:
volumes:
- /tmp/bob_emploi:/tmp/bob_emploi
- ./frontend/client/ssl:/etc/ssl/webpack-dev:ro
- ./frontend/monitoring/cfg:/usr/app/cfg:ro
- ./frontend/monitoring/public:/usr/app/public:ro
- ./frontend/monitoring/src:/usr/app/src:ro
- ./frontend/monitoring/build_dist.ts:/usr/app/build_dist.ts:ro
- ./frontend/monitoring/custom.d.ts:/usr/app/custom.d.ts:ro
- ./frontend/monitoring/package.json:/usr/app/package.json:ro
- ./frontend/monitoring/server.ts:/usr/app/server.ts:ro
- ./frontend/monitoring/tsconfig.json:/usr/app/tsconfig.json:ro
- ./frontend/monitoring/dist:/usr/app/dist
- ./.eslintrc.json:/usr/app/.eslintrc.json:ro
- ./.eslintignore:/usr/app/.eslintignore:ro
environment:
PUBLIC_HOST: localhost.bob-dev.bayes.org
PUBLIC_PORT: 4000
ports:
- "${PUBLIC_PORT:-4000}:80"
mailjet:
environment:
RECIPIENT:
volumes:
- ./frontend/mailjet/entrypoint.sh:/usr/app/entrypoint.sh
- ./frontend/mailjet/package.json:/usr/app/package.json:ro
- ./frontend/mailjet/index.ts:/usr/app/index.ts:ro
- ./frontend/mailjet/json2mjml.d.ts:/usr/app/json2mjml.d.ts:ro
- ./frontend/mailjet/tsconfig.json:/usr/app/tsconfig.json
- ./frontend/server/mail/templates:/usr/app/templates:rw