-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
49 lines (46 loc) · 862 Bytes
/
docker-compose.yml
File metadata and controls
49 lines (46 loc) · 862 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
44
45
46
47
48
49
version: '3'
services:
backend-api:
image: multi-tier-docker-api
build:
context: ./api
dockerfile: ./Dockerfile
ports:
- 5000:5000
volumes:
- ./api:/app
networks:
- multi-tier-docker
depends_on:
- mongo
frontend-client:
image: 'multi-tier-docker-client'
build:
context: ./client
dockerfile: ./Dockerfile
ports:
- 3000:3000
networks:
- multi-tier-docker
volumes:
- ./client:/app
environment:
- CHOKIDAR_USEPOLLING=true
depends_on:
- backend-api
mongo:
image: mongo
networks:
- multi-tier-docker
ports:
- 27017:27017
restart: always
volumes:
- mongodb:/data/db
- mongodb_config:/data/configdb
networks:
multi-tier-docker:
driver: bridge
volumes:
mongodb:
mongodb_config: