-
Notifications
You must be signed in to change notification settings - Fork 40
/
Copy pathdocker-compose.yml
41 lines (41 loc) · 937 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
version: "2"
services:
client:
image: mhart/alpine-node:6.8.0
restart: always
ports:
- "3000:3000"
working_dir: /client/src/app
volumes:
- ./client:/client/src/app
entrypoint: ["npm", "start"]
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