-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
39 lines (37 loc) · 795 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
39 lines (37 loc) · 795 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
services:
db:
image: mysql:8.0
container_name: sis_mysql
restart: unless-stopped
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: sis_portal
ports:
- "3307:3306"
volumes:
- mysql_data:/var/lib/mysql
healthcheck:
test: ["CMD", "mysqladmin", "ping", "-h", "localhost", "-uroot", "-proot"]
interval: 10s
timeout: 5s
retries: 10
backend:
build:
context: ./backend
container_name: sis_backend
restart: unless-stopped
env_file:
- ./backend/.env
environment:
DB_HOST: db
DB_PORT: 3306
DB_NAME: sis_portal
DB_USER: root
DB_PASSWORD: root
ports:
- "5000:5000"
depends_on:
db:
condition: service_healthy
volumes:
mysql_data: