# Apache Pulsar Standalone - Smart City Digital Twin Martinique # HTTP Admin UI: https://pulsar.digitribe.fr (via Traefik) # HTTP API: http://smart-city-pulsar:8080/admin/v2 # Binary: pulsar://smart-city-pulsar:6650 services: pulsar: image: apachepulsar/pulsar:3.2.0 container_name: smart-city-pulsar restart: unless-stopped user: "10000:0" ports: - "6650:6650" - "8080:8080" environment: PULSAR_MEM: "-Xms512m -Xmx512m -XX:MaxDirectMemorySize=512m" PULSAR_STANDALONE_USE_ZOOKEEPER: "true" volumes: - pulsar-data:/pulsar/data networks: - traefik-public - smartcity-shared command: ["/pulsar/bin/pulsar", "standalone", "-nfw"] healthcheck: test: ["CMD-SHELL", "curl -sf http://localhost:8080/admin/v2/clusters || exit 1"] interval: 30s timeout: 10s retries: 10 start_period: 60s labels: - "traefik.enable=true" - "traefik.http.routers.pulsar.rule=Host(`pulsar.digitribe.fr`)" - "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 volumes: pulsar-data: