1
0

refactor: import the sql file when the service starts

This commit is contained in:
gin
2026-05-08 15:27:50 +08:00
parent fdae916d12
commit cc20e89161
3 changed files with 35 additions and 4 deletions
+4
View File
@@ -3,6 +3,9 @@ services:
image: mysql:8.0
container_name: mysql-server
restart: always
command:
- --character-set-server=utf8mb4
- --collation-server=utf8mb4_unicode_ci
environment:
MYSQL_ROOT_PASSWORD: root123
MYSQL_DATABASE: agileboot_pure
@@ -10,6 +13,7 @@ services:
- "3306:3306"
volumes:
- mysql_data:/var/lib/mysql
- ./sql/agileboot.sql:/docker-entrypoint-initdb.d/01-agileboot.sql:ro
networks:
- db-network