-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
42 lines (42 loc) · 916 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
version: "2"
services:
client:
build:
context: ./client
image: idle-capitalist-client
restart: always
ports:
- "3000:3000"
volumes:
- ./client:/client
- /client/node_modules
links:
- server
networks:
- webappnetwork
server:
build:
context: ./server
image: idle-capitalist-server
restart: always
ports:
- "3001:3001"
volumes:
- ./server:/server
- /server/node_modules
depends_on:
- mongodb
networks:
- webappnetwork
mongodb:
image: mongo
restart: always
container_name: mongodb
ports:
- 27017:27017
command: mongod --noauth
networks:
- webappnetwork
networks:
webappnetwork:
driver: bridge