-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
55 lines (51 loc) · 912 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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
version: '3.9'
services:
app:
build:
context: .
# target: production
dockerfile: Dockerfile.production
env_file:
- .env.production
ports:
- 3001:3001
volumes:
- ./:/app
- /app/node_modules
# depends_on:
# - mongo
# networks:
# - node-network
dev:
build:
context: .
# target: development
dockerfile: Dockerfile.development
env_file:
- .env.development
ports:
- 3000:3000
volumes:
- ./:/app
- /app/node_modules
depends_on:
- mongo
networks:
- node-network
mongo:
image: mongo:latest
container_name: mongo_dev
env_file:
- .env.development
ports:
- 27017:27017
volumes:
- mongo-data:/data/db
networks:
- node-network
volumes:
mongo-data:
driver: local
networks:
node-network:
driver: bridge