services:
  mengyalinkfly-backend:
    build: .
    container_name: mengyalinkfly-backend
    ports:
      - "7878:7878"
    volumes:
      # 数据持久化目录
      - /shumengya/docker/mengyalinkfly:/app/data
    restart: unless-stopped
    environment:
      - TZ=Asia/Shanghai
      - PYTHONUNBUFFERED=1
    healthcheck:
      test: ["CMD-SHELL", "curl -f http://localhost:7878/ || exit 1"]
      interval: 30s
      timeout: 10s
      retries: 3
      start_period: 40s
