2023.04.24: 当前项目停止开发,请移步新项目KeQing Anime
NahidaProject Anime 是动漫门户管理系统
- 当前目录新建
mysql
文件夹
将数据库脚本anime.sql
放入该文件夹
- 当前目录新建
docker-compose.yml
version: "3.9"
services:
anime_frontend:
build: NahidaProject_Anime_Frontend
ports:
- "5173:5173"
anime_backend:
build: NahidaProject_Anime_Backend
ports:
- "1314:1314"
volumes:
- /d:/data
environment:
- SPRING_DATASOURCE_URL=jdbc:mysql://db/anime?serverTimezone=UTC
- SPRING_DATASOURCE_USERNAME=root
- SPRING_DATASOURCE_PASSWORD=123456
db:
image: mysql:latest
ports:
- "3306:3306"
environment:
- MYSQL_ROOT_PASSWORD=123456
- MYSQL_DATABASE=anime
volumes:
- ./mysql:/docker-entrypoint-initdb.d
> mysql
> anime.sql
> NahidaProject_Anime_Backend
> ...
> NahidaProject_Anime_Frontend
> ...
> docker-compose.yml
当前路径下执行docker-compose up --build