-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.all.yml
More file actions
47 lines (42 loc) · 841 Bytes
/
docker-compose.all.yml
File metadata and controls
47 lines (42 loc) · 841 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
version: '3.9'
services:
# ----- nginx ----- #
nginx:
container_name: stock-nginx
build: ./nginx
restart: always
volumes:
- ./nginx/log/nginx:/var/log/nginx
ports:
- 80:80
environment:
- UPSTREAM_FRONTEND_IP=${UPSTREAM_FRONTEND_IP}
- UPSTREAM_BACKEND_IP=${UPSTREAM_BACKEND_IP}
networks:
- frontend
- backend
# ----- frontend ----- #
frontend:
container_name: stock-frontend
build: ./frontend
restart: always
expose:
- "3000"
networks:
- frontend
# ----- backend ----- #
backend:
container_name: stock-backend
build: ./backend
restart: always
volumes:
- ./backend:/workspace
ports:
- "5000:5000"
networks:
- backend
networks:
frontend:
driver: bridge
backend:
driver: bridge