# 生产：宿主机 12364 -> 容器内 5002；容器名 infogenie-backend-go
# 使用：在同级目录准备 .env.production（数据库等），然后 docker compose up -d --build
services:
  infogenie-backend-go:
    build:
      context: .
      dockerfile: Dockerfile
    image: infogenie-backend-go:latest
    container_name: infogenie-backend-go
    ports:
      - "12364:5002"
    env_file:
      - .env.production
    environment:
      APP_ENV: production
    restart: unless-stopped
