Files
012-kaopeilian/backend/docker-compose.yml
111 998211c483 feat: 初始化考培练系统项目
- 从服务器拉取完整代码
- 按框架规范整理项目结构
- 配置 Drone CI 测试环境部署
- 包含后端(FastAPI)、前端(Vue3)、管理端

技术栈: Vue3 + TypeScript + FastAPI + MySQL
2026-01-24 19:33:28 +08:00

46 lines
1.1 KiB
YAML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
version: '3.8'
services:
mysql:
image: mysql:8.0.43
container_name: kaopeilian_mysql
restart: always
environment:
MYSQL_ROOT_PASSWORD: Kaopeilian2025!@#
MYSQL_DATABASE: kaopeilian
MYSQL_CHARACTER_SET_SERVER: utf8mb4
MYSQL_COLLATION_SERVER: utf8mb4_unicode_ci
ports:
- "3306:3306"
volumes:
- mysql_data:/var/lib/mysql
- ./将调用工作流-联调过半-考陪练kaopeilian_final_complete_backup_20250923_025629.sql:/docker-entrypoint-initdb.d/init.sql
- ./mysql.cnf:/etc/mysql/conf.d/mysql.cnf
command: --default-authentication-plugin=mysql_native_password
networks:
- kaopeilian_network
# 可选phpMyAdmin管理界面
phpmyadmin:
image: phpmyadmin/phpmyadmin:latest
container_name: kaopeilian_phpmyadmin
restart: always
environment:
PMA_HOST: mysql
PMA_PORT: 3306
PMA_USER: root
PMA_PASSWORD: Kaopeilian2025!@#
ports:
- "8080:80"
depends_on:
- mysql
networks:
- kaopeilian_network
volumes:
mysql_data:
driver: local
networks:
kaopeilian_network:
driver: bridge