-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose-dev.yml
75 lines (71 loc) · 2.13 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
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_NAME
- API_PATH
- FRONTEND_DEV_HOST
- FRONTEND_DEV_PORT
- BACKEND_PORT
- BACKEND_HOST
- API_USER_LIMIT_RATE
- API_DOWNLOAD_LIMIT_RATE
- API_USER_BURST
- API_USER_SCOPE
- API_GLOBAL_LIMIT_RATE
- API_GLOBAL_BURST
volumes:
- ${NGINX}/default-dev.template:/etc/nginx/conf.d/default.template
- ${NGINX}/nginx-dev.template:/etc/nginx/nginx.template
ports:
- ${PORT}:80
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_NAME}
app_name: ${APP_NAME}
app_ver: ${APP_VERSION}
NPM_FIX: ${NPM_FIX}
NPM_LATEST: ${NPM_LATEST}
NPM_GIT: ${NPM_GIT}
NPM_VERBOSE: ${NPM_VERBOSE}
NPM_AUDIT_IGNORE: ${NPM_AUDIT_IGNORE}
FRONTEND_DEV_PORT: ${FRONTEND_DEV_PORT}
image: ${DOCKER_USERNAME}/${DC_PREFIX}-frontend-development:${APP_VERSION}
container_name: ${DC_PREFIX}-frontend-development
environment:
APP: ${APP_NAME}
restart: always
volumes:
- ${FRONTEND}/package.json:/${APP_NAME}/package.json
- ${FRONTEND}/src:/${APP_NAME}/src
- ${FRONTEND}/vite.config.js:/${APP_NAME}/vite.config.js
- ${FRONTEND}/.editorconfig:/${APP_NAME}/.editorconfig
- ${FRONTEND}/public:/${APP_NAME}/public
- ${FRONTEND}/index.html:/${APP_NAME}/index.html
networks:
default:
external:
name: ${DC_NETWORK}