services:
  app:
    build: .
    image: citywalk-stamp:latest
    container_name: citywalk-stamp
    restart: unless-stopped
    # Bind to loopback only: the outside world must go through your host Nginx
    # 宿主机 3001 -> 容器 3000（3000 已被宿主其它服务占用，例如 1Panel Gitea）
    ports:
      - "127.0.0.1:3001:3000"
    volumes:
      - ./data:/app/data
      - ./uploads:/app/packages/server/uploads
    env_file:
      - .env
    environment:
      NODE_ENV: production
      SERVER_PORT: 3000
      DATABASE_URL: file:/app/data/prod.db
