-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
43 lines (43 loc) · 1.07 KB
/
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
version: '3'
services:
db:
container_name: mongo-todo-react
image: mongo:3.4
hostname: mongo
ports:
- 27017:27017
backend:
container_name: backend-todo-react
image: node:8.1
hostname: backend
environment:
WAIT_HOSTS: mongo:27017
volumes:
- ./backend:/backend
ports:
- 3003:3003
command: bash -c "cd /backend && npm i && npm run dev"
frontend:
container_name: frontend-todo-react
image: node:8.1
hostname: frontend-todo-react
environment:
WAIT_HOSTS: mongo:27017, backend:3003
volumes:
- ./frontend-sem-redux:/frontend-sem-redux
ports:
- 8484:8484
command: bash -c "cd /frontend-sem-redux && npm i && npm run dev"
expose:
- '8484'
frontend-redux:
container_name: frontend-redux-todo-react
image: node:8.1
hostname: frontend-redux-todo-react
environment:
WAIT_HOSTS: mongo:27017, backend:3003
volumes:
- ./frontend-redux:/frontend-redux
ports:
- 8585:8585
command: bash -c "cd /frontend-redux && npm i && npm run dev"