services: backend: build: context: . container_name: mengyastore-backend ports: - "28081:8080" environment: GIN_MODE: release TZ: Asia/Shanghai # Production MySQL DSN — uses internal network address. # Change to TestDSN or override via .env file for local testing. DATABASE_DSN: "mengyastore:mengyastore@tcp(192.168.1.100:3306)/mengyastore?charset=utf8mb4&parseTime=True&loc=Local" volumes: - ./config.json:/app/config.json:ro restart: unless-stopped