forked from Hashnode/mern-starter
-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
35 lines (35 loc) · 1.02 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
version: '3.4'
services:
web:
build:
context: ./
dockerfile: Dockerfile
target: development
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/mern-starter
stdin_open: true
tty: true
db:
image: mongo:latest
volumes:
- dbdata:/data/db
volumes:
dbdata: