services: redis: image: redis:7-alpine # No published host port: only containers on this network reach Redis, and # the password is mandatory so an unset variable aborts startup. environment: REDIS_PASSWORD: "${REDIS_PASSWORD:?REDIS_PASSWORD must be set (see docs/deployment.md)}" command: redis-server --requirepass "${REDIS_PASSWORD:?REDIS_PASSWORD must be set (see docs/deployment.md)}" healthcheck: test: ["CMD-SHELL", "redis-cli -a \"$$REDIS_PASSWORD\" --no-auth-warning ping | grep -q PONG"] interval: 3s timeout: 1s retries: 5 restart: unless-stopped clickhouse: image: clickhouse/clickhouse-server:latest container_name: rampart-clickhouse # ClickHouse has no authentication here: bind it to loopback only and keep # container-to-container traffic on the Compose network (service name). ports: - "127.0.0.1:8123:8123" - "127.0.0.1:9000:9000" volumes: - ./clickhouse/schema.sql:/docker-entrypoint-initdb.d/schema.sql:ro healthcheck: test: ["CMD", "curl", "-f", "http://localhost:8123/ping"] interval: 10s timeout: 5s retries: 5 restart: unless-stopped grafana: image: grafana/grafana:latest container_name: rampart-grafana ports: - "127.0.0.1:3000:3000" depends_on: clickhouse: condition: service_started environment: GF_SECURITY_ADMIN_PASSWORD: "${GRAFANA_PASSWORD:?GRAFANA_PASSWORD must be set (see docs/deployment.md)}" volumes: - ./grafana/datasources:/etc/grafana/provisioning/datasources:ro - ./grafana/dashboards:/etc/grafana/provisioning/dashboards:ro restart: unless-stopped edge: build: context: .. dockerfile: deploy/docker/Dockerfile.edge ports: - "25565:25565" - "127.0.0.1:9090:9090" extra_hosts: - "host.docker.internal:host-gateway" environment: RAMPART_CONFIG: /etc/rampart/config.toml volumes: - ./config/edge-docker.toml:/etc/rampart/config.toml:ro depends_on: redis: condition: service_healthy