services:
  sproutgate-auth:
    build:
      context: .
      dockerfile: Dockerfile
    container_name: sproutgate-backend
    restart: unless-stopped
    environment:
      PORT: "8080"
      DATA_DIR: /data
      DB_HOST: ${DB_HOST}
      DB_PORT: ${DB_PORT:-3306}
      DB_USER: ${DB_USER}
      DB_PASSWORD: ${DB_PASSWORD}
      DB_NAME: ${DB_NAME:-sproutgate}
    volumes:
      - ./data:/data
    ports:
      - "${AUTH_API_PORT:-28080}:8080"
