-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathdocker-compose-dev.yml
112 lines (108 loc) · 3.23 KB
/
docker-compose-dev.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
version: '3.4'
# this docker configuation is for dev use only
services:
nginx-development:
image: ${DOCKER_USERNAME}/${DC_PREFIX}-nginx-development:${APP_VERSION}
build:
context: ${NGINX}
target: development
dockerfile: Dockerfile
args:
app_name: ${APP}
app_ver: ${APP_VERSION}
container_name: ${DC_PREFIX}-nginx-development
depends_on:
- frontend-development
environment:
- APP
- PORT
- FRONTEND_DEV_HOST
- FRONTEND_DEV_PORT
- BACKEND_PROXY_PATH
- BACKEND_PORT
- BACKEND_HOST
- ES_PROXY_PATH
- ES_HOST
- ES_INDEX
- ES_PORT
- DATAGOUV_PROXY_PATH
- DATAGOUV_RESOURCES_PROXY
- DATAGOUV_RESOURCES_REWRITE_PATH
- API_SEARCH_LIMIT_RATE
- API_SEARCH_USER_BURST
- API_SEARCH_GLOBAL_LIMIT_RATE
- API_SEARCH_GLOBAL_BURST
- API_BULK_SUBMIT_LIMIT_RATE
- API_BULK_SUBMIT_BURST
- API_MISC_LIMIT_RATE
- API_MISC_USER_BURST
- API_MISC_GLOBAL_LIMIT_RATE
- API_MISC_GLOBAL_BURST
- API_AGG_LIMIT_RATE
- API_AGG_USER_BURST
- API_AGG_GLOBAL_LIMIT_RATE
- API_AGG_GLOBAL_BURST
- API_DOWNLOAD_LIMIT_RATE
- API_USER_SCOPE
- API_SEND_TIMEOUT
- API_READ_TIMEOUT
- API_MAX_BODY
- GOOGLE_ANALYTICS_ID
- GOOGLE_ADSENSE_ID
volumes:
- ${NGINX}/default-dev.template:/etc/nginx/conf.d/default.template
- ${NGINX}/nginx-dev.template:/etc/nginx/nginx.template
- ${FRONTEND}/public:/usr/share/nginx/html
ports:
- ${PORT}:${PORT}
- "35729:35729"
restart: always
frontend-development:
build:
context: ${FRONTEND}
dockerfile: Dockerfile
target: development
args:
http_proxy: ${http_proxy}
https_proxy: ${https_proxy}
no_proxy: ${no_proxy}
npm_registry: ${NPM_REGISTRY}
sass_registry: ${SASS_REGISTRY}
MIRROR_DEBIAN: ${MIRROR_DEBIAN}
app_path: /${APP}
app_name: ${APP}
app_ver: ${APP_VERSION}
NPM_FIX: ${NPM_FIX}
NPM_LATEST: ${NPM_LATEST}
NPM_GIT: ${NPM_GIT}
NPM_VERBOSE: ${NPM_VERBOSE}
FRONTEND_DEV_PORT: ${FRONTEND_DEV_PORT}
image: ${DOCKER_USERNAME}/${DC_PREFIX}-frontend-development:${APP_VERSION}
container_name: ${DC_PREFIX}-frontend-development
environment:
APP: ${APP}
PORT: ${FRONTEND_DEV_PORT}
HOST: 0.0.0.0
AB_THRESHOLD: ${AB_THRESHOLD}
API_EMAIL: ${API_EMAIL}
API_MAX_BODY: ${API_MAX_BODY}
ES_PROXY_PATH: ${ES_PROXY_PATH}
ES_MAX_RESULTS: ${ES_MAX_RESULTS}
BACKEND_TOKEN_USER: ${BACKEND_TOKEN_USER}
BACKEND_PROXY_PATH: ${BACKEND_PROXY_PATH}
DATAGOUV_PROXY_PATH: ${DATAGOUV_PROXY_PATH}
DATAGOUV_CATALOG_URL: ${DATAGOUV_CATALOG_URL}
DATAGOUV_RESOURCES_URL: ${DATAGOUV_RESOURCES_URL}
MITM_URL: ${MITM_URL}
THEME_DNUM: ${THEME_DNUM}
volumes:
- ${FRONTEND}/public:/${APP}/public
- ${STATS}:/${APP}/public/stats
- ${FRONTEND}/.eslintrc.js:/${APP}/.eslintrc.js
- ${FRONTEND}/rollup.config.js:/${APP}/rollup.config.js
- ${FRONTEND}/src:/${APP}/src/
- /${APP}/node_modules
networks:
default:
external:
name: ${DC_NETWORK}