-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
40 lines (40 loc) · 876 Bytes
/
docker-compose.yml
File metadata and controls
40 lines (40 loc) · 876 Bytes
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
version: "2"
services:
client:
image: webapp-client
restart: always
ports:
- "3000:3000"
volumes:
- ./client:/client
- /client/node_modules
links:
- api
networks:
webappnetwork
api:
image: webapp-api
restart: always
ports:
- "9000:9000"
volumes:
- ./api:/api
- /api/node_modules
depends_on:
- mongodb
networks:
webappnetwork
mongodb:
image: mongo
restart: always
container_name: mongodb
volumes:
- ./data-node:/data/db
ports:
- 27017:27017
command: mongod --noauth --smallfiles
networks:
- webappnetwork
networks:
webappnetwork:
driver: bridge