-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
56 lines (49 loc) · 1.29 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
44
45
46
47
48
49
50
51
52
53
54
55
56
version: "3"
services:
database:
image: mongo
container_name: mongo
restart: unless-stopped
command: mongod --dbpath /data/db --port 27017
volumes:
- ./data:/data/db
networks:
- backend_net
backend:
image: backend-flask
depends_on:
- database
build:
context: ./backend
dockerfile: Dockerfile
restart: unless-stopped
container_name: "backend-app"
links:
- database
volumes:
- ./backend:/app # for watching files
ports:
- "8081:8081" # if changed, please change port in `frontend/proxy.conf.dev.json
networks:
- frontend_net
- backend_net
frontend:
image: frontend-angular
depends_on:
- backend
build:
context: ./frontend
dockerfile: Dockerfile
restart: always
container_name: "frontend-app"
volumes:
- ./frontend/src:/app/src # for watching files
ports:
- "4200:4200"
networks:
- frontend_net
networks:
frontend_net:
driver: bridge
backend_net:
driver: bridge