services:
  libredeck-web:
    image: libredeck-web:latest
    container_name: libredeck-web
    restart: unless-stopped
    ports:
      - "8091:8091"
    environment:
      - SPRING_PROFILES_ACTIVE=prod
      - SERVER_PORT=8091
      - SPOTIFY_CLIENT_ID=${SPOTIFY_CLIENT_ID}
      - SPOTIFY_CLIENT_SECRET=${SPOTIFY_CLIENT_SECRET}
      - SPOTIFY_REDIRECT_URI=${SPOTIFY_REDIRECT_URI}
      - DEEZER_APP_ID=${DEEZER_APP_ID}
      - DEEZER_APP_SECRET=${DEEZER_APP_SECRET}
      - DEEZER_REDIRECT_URI=${DEEZER_REDIRECT_URI}
      - TIDAL_CLIENT_ID=${TIDAL_CLIENT_ID}
      - TIDAL_CLIENT_SECRET=${TIDAL_CLIENT_SECRET}
      - GOOGLE_API_KEY=${GOOGLE_API_KEY}
    healthcheck:
      test: ["CMD", "curl", "-f", "http://localhost:8091/actuator/health"]
      interval: 30s
      timeout: 5s
      retries: 3
