-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
45 lines (41 loc) · 872 Bytes
/
docker-compose.yml
File metadata and controls
45 lines (41 loc) · 872 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
version: '3.8'
services:
db:
image: mysql:8.0
restart: always
environment:
MYSQL_ROOT_PASSWORD: root123*
MYSQL_DATABASE: dashboardDB
volumes:
- C:\Users\hp\Desktop\MaxProfit-master\MaxProfit-main\MaxProfit/mysql-data:/var/lib/mysql
networks:
- app-network
healthcheck:
test: ["CMD", "mysqladmin", "ping", "-h", "localhost"]
interval: 5s
retries: 10
backend:
build: ./backend
ports:
- "5000:5000"
depends_on:
db:
condition: service_healthy
environment:
- DB_HOST=db
- DB_PORT=3306
- DB_USER=root
- DB_PASSWORD=root123*
- DB_NAME=dashboardDB
networks:
- app-network
frontend:
build: ./frontend
ports:
- "80:80"
depends_on:
- backend
networks:
- app-network
networks:
app-network: