-
-
Notifications
You must be signed in to change notification settings - Fork 44
/
docker-compose.yml
37 lines (32 loc) · 919 Bytes
/
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
36
37
version: '3.4'
services:
web:
build:
context: ./
dockerfile: dockerfile
networks:
- MERN-network
links:
- db
ports:
- "8000:5000"
volumes:
- .:/usr/src/app
environment:
NODE_ENV: development
MONGO_URL: mongodb://db:27017/test
stdin_open: true
tty: true
db:
image: mongo:latest
volumes:
- ./dbdata:/data/db
networks:
- MERN-network
ports:
- "27017:27017"
volumes:
dbdata:
networks:
MERN-network:
driver: bridge