# Development overrides: exposes ports for direct access
# Usage: docker compose -f docker-compose.yml -f docker-compose.dev.yml up
services:
  postgres:
    ports:
      - "5432:5432"

  logto:
    ports:
      - "3001:3001"

  logto-bootstrap:
    environment:
      VENDOR_SEED_ENABLED: "true"

  cameleer-saas:
    ports:
      - "8080:8080"
    volumes:
      - ./ui/dist:/app/static
      - /var/run/docker.sock:/var/run/docker.sock
    group_add:
      - "0"
    environment:
      SPRING_PROFILES_ACTIVE: dev
      SPRING_WEB_RESOURCES_STATIC_LOCATIONS: file:/app/static/,classpath:/static/
      PUBLIC_HOST: ${PUBLIC_HOST:-localhost}
      PUBLIC_PROTOCOL: ${PUBLIC_PROTOCOL:-https}
      CAMELEER_SERVER_IMAGE: gitea.siegeln.net/cameleer/cameleer3-server:${VERSION:-latest}
      CAMELEER_SERVER_UI_IMAGE: gitea.siegeln.net/cameleer/cameleer3-server-ui:${VERSION:-latest}
      CAMELEER_NETWORK: cameleer-saas_cameleer
      CAMELEER_TRAEFIK_NETWORK: cameleer-traefik

  clickhouse:
    ports:
      - "8123:8123"
