services:
  app:
    build:
      context: ../..
      dockerfile: apps/cellar-go/Dockerfile
    ports:
      - "${PORT:-3000}:${PORT:-3000}"
    environment:
      - HOST=0.0.0.0
      - PORT=${PORT:-3000}
      - CELLAR_DB_PATH=/data/cellar-go.sqlite
      - CELLAR_PASSWORD=${CELLAR_PASSWORD:-changeme}
      - ANTHROPIC_API_KEY=${ANTHROPIC_API_KEY:-}
      - COOKIE_SECURE=${COOKIE_SECURE:-false}
      - SITE_URL=${SITE_URL:-http://localhost:3000}
      - SITE_TITLE=${SITE_TITLE:-Cellar}
      - SITE_DESCRIPTION=${SITE_DESCRIPTION:-Personal wine tasting log}
    volumes:
      - cellar-go-data:/data
    restart: unless-stopped

volumes:
  cellar-go-data:
