services:
  app:
    build:
      context: ../..
      dockerfile: apps/feeds-go/Dockerfile
    ports:
      - "${PORT:-3000}:${PORT:-3000}"
    environment:
      - ADMIN_PASSWORD=${ADMIN_PASSWORD:-changeme}
      - FEEDS_DB_PATH=/data/feeds-go.sqlite
      - COOKIE_SECURE=false
      - HOST=0.0.0.0
      - PORT=${PORT:-3000}
      - BASE_URL=${BASE_URL:-http://localhost:${PORT:-3000}}
      - API_KEY=${API_KEY:-}
      - DEFAULT_POLL_MINUTES=${DEFAULT_POLL_MINUTES:-30}
      - ITEM_CAP_PER_FEED=${ITEM_CAP_PER_FEED:-200}
    volumes:
      - feeds-go-data:/data
    restart: unless-stopped

volumes:
  feeds-go-data:
