-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
43 lines (43 loc) · 1007 Bytes
/
docker-compose.yaml
File metadata and controls
43 lines (43 loc) · 1007 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
41
42
43
version: "2"
services:
client:
build: ./client/
image: site-wide-warning-client
restart: always
ports:
- "3000:3000"
volumes:
- ./client:/client
- /client/node_modules
entrypoint: ["npm", "start"]
links:
- server
networks:
[webappnetwork]
server:
build: ./server/
image: site-wide-warning-server
restart: always
ports:
- "8000:8000"
volumes:
- ./server:/server
- /server/node_modules
depends_on:
- mongodb
networks:
[webappnetwork]
mongodb:
image: mongo
restart: always
container_name: site-wide-warning-mongodb
volumes:
- ./data-node:/data/db
ports:
- 27017:27017
command: mongod --noauth
networks:
- webappnetwork
networks:
webappnetwork:
driver: bridge