services:
  funktechnik-website:
    container_name: funktechnik-website
    build:
      context: .
      dockerfile: Dockerfile
    ports:
      - "3010:3010"
    environment:
      NEXT_PUBLIC_SITE_URL: ${NEXT_PUBLIC_SITE_URL:-http://127.0.0.1:3010}
      NEXT_PUBLIC_APP_VERSION: "0.4.1"
      ADMIN_EMAIL: ${ADMIN_EMAIL:-}
      ADMIN_PASSWORD: ${ADMIN_PASSWORD:-}
      ADMIN_SESSION_SECRET: ${ADMIN_SESSION_SECRET:-}
      AUTH_COOKIE_SECURE: ${AUTH_COOKIE_SECURE:-false}
      OLYMPUS_INTAKE_API_URL: ${OLYMPUS_INTAKE_API_URL:-}
      OLYMPUS_INTAKE_API_TOKEN: ${OLYMPUS_INTAKE_API_TOKEN:-}
      OLYMPUS_PUBLIC_STATUS_API_URL: ${OLYMPUS_PUBLIC_STATUS_API_URL:-}
      OLYMPUS_PUBLIC_STATUS_API_TOKEN: ${OLYMPUS_PUBLIC_STATUS_API_TOKEN:-}
      DOCKER_ENV: "true"
    volumes:
      - funktechnik-data:/app/data
      - funktechnik-storage:/app/storage
      - funktechnik-next-cache:/app/.next/cache
    restart: unless-stopped

volumes:
  funktechnik-data:
  funktechnik-storage:
  funktechnik-next-cache:
