This repository has been archived by the owner on Jun 23, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 7
/
docker-compose-nginx-dev.yml
67 lines (66 loc) · 1.81 KB
/
docker-compose-nginx-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
version: '3.4'
services:
nginx.dev:
image: nginx:latest
restart: always
container_name: ${APP}_nginx
volumes:
- ./nginx/candilib_nginx.conf:/etc/nginx/nginx.conf
- ./nginx/candilib_proxy.conf:/etc/nginx/proxy.conf
- ./nginx/logs:/var/log/nginx/
container_name: ${APP}_nginx
depends_on:
- web
ports:
- "${APP_PORT}:80"
networks:
- candilib-network
web:
build:
context: ./
dockerfile: Dockerfile
target: development
args:
proxy: ${http_proxy}
container_name: ${APP}_front
depends_on:
- db
ports:
- "${WEB_PORT:-8000}:8000"
volumes:
- ./client:/usr/src/app/client
- ./Intl:/usr/src/app/Intl
- ./server:/usr/src/app/server
- ./.babelrc:/usr/src/app/.babelrc
- ./index.js:/usr/src/app/index.js
- ./nodemon.json:/usr/src/app/nodemon.json
- ./package.json:/usr/src/app/package.json
- ./package-lock.json:/usr/src/app/package-lock.json
- ./webpack.config.babel.js:/usr/src/app/webpack.config.babel.js
- ./webpack.config.dev.js:/usr/src/app/webpack.config.dev.js
- ./webpack.config.prod.js:/usr/src/app/webpack.config.prod.js
- ./webpack.config.server.js:/usr/src/app/webpack.config.server.js
environment:
NODE_ENV: development
MONGO_URL: mongodb://db:27017/candilib
stdin_open: true
tty: true
command: ./node_modules/.bin/nodemon --legacy-watch --inspect=0.0.0.0 index.js
networks:
- candilib-network
db:
image: mongo:latest
container_name: ${APP}_db
volumes:
- dbdata:/data/db
ports:
- "${WEB_PORT:-27017}:27017"
networks:
- candilib-network
volumes:
dbdata:
networks:
candilib-network:
driver: bridge
driver_opts:
com.docker.network.driver.mtu: 1450