# Pulsar Manager - Web UI for managing Pulsar # Access: https://pulsar.digitribe.fr version: '3.8' services: pulsar-manager: image: apachepulsar/pulsar-manager:v0.4.0 container_name: smart-city-pulsar-manager restart: unless-stopped depends_on: pulsar: condition: service_healthy environment: - PULSAR_CLUSTER_NAME=standalone - PULSAR_SERVICE_URL=pulsar://smart-city-pulsar:6650 - PULSAR_WEB_SERVICE_URL=http://smart-city-pulsar:8080 - SPRING_APPLICATION_JSON={"server":{"port":7750},"pulsar":{"cluster":"standalone","serviceUrl":"pulsar://smart-city-pulsar:6650","webServiceUrl":"http://smart-city-pulsar:8080"}} networks: - traefik-public - smartcity-shared ports: - "7750:7750" healthcheck: test: ["CMD-SHELL", "curl -sf http://localhost:7750 || exit 1"] interval: 30s timeout: 10s retries: 5 start_period: 60s labels: - "traefik.enable=true" - "traefik.http.routers.pulsar-manager.rule=Host(`pulsar.digitribe.fr`)" - "traefik.http.routers.pulsar-manager.entrypoints=websecure" - "traefik.http.routers.pulsar-manager.tls=true" - "traefik.http.services.pulsar-manager.loadbalancer.server.port=7750" # Redirect /admin and /ws to Pulsar standalone - "traefik.http.routers.pulsar.rule=Host(`pulsar.digitribe.fr`) && PathPrefix(`/admin`, `/ws`, `/lookup`)" - "traefik.http.routers.pulsar.entrypoints=websecure" - "traefik.http.routers.pulsar.tls=true" - "traefik.http.services.pulsar.loadbalancer.server.port=8080" networks: traefik-public: external: true smartcity-shared: external: true