33 lines
848 B
YAML
33 lines
848 B
YAML
name: wolin-student-management
|
|
|
|
services:
|
|
web:
|
|
image: wolin-student-management:local
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile
|
|
restart: unless-stopped
|
|
init: true
|
|
ports:
|
|
- "127.0.0.1:${APP_PORT:-8004}:8004"
|
|
environment:
|
|
DB_HOST: host.docker.internal
|
|
DB_PORT: ${DB_PORT:-3306}
|
|
DB_NAME: ${DB_NAME:-student_management_system}
|
|
DB_USER: ${DB_USER:-root}
|
|
DB_PASSWORD: ${DB_PASSWORD:?请在 .env 中设置现有 MySQL 密码}
|
|
DEEPSEEK_API_KEY: ${DEEPSEEK_API_KEY:-}
|
|
DEEPSEEK_MODEL: ${DEEPSEEK_MODEL:-}
|
|
volumes:
|
|
- type: bind
|
|
source: ./ai.local.json
|
|
target: /app/ai.local.json
|
|
read_only: true
|
|
bind:
|
|
create_host_path: false
|
|
logging:
|
|
driver: json-file
|
|
options:
|
|
max-size: "10m"
|
|
max-file: "3"
|