version: '3.8' services: clickhouse: image: clickhouse/clickhouse-server user: '101:101' container_name: clickhouse hostname: clickhouse volumes: - ${PWD}/config/clickhouse/server/config.d/config.xml:/etc/clickhouse-server/config.d/config.xml - ${PWD}/config/clickhouse/server/users.d/users.xml:/etc/clickhouse-server/users.d/users.xml - ${PWD}/config/clickhouse/docker/:/docker-entrypoint-initdb.d ports: - '127.0.0.1:8123:8123' - '127.0.0.1:9000:9000' depends_on: - minio - createbuckets - nats minio: image: quay.io/minio/minio container_name: minio hostname: minio command: server --address 0.0.0.0:10000 --console-address 0.0.0.0:10001 /data ports: - '127.0.0.1:10000:10000' - '127.0.0.1:10001:10001' environment: - MINIO_ROOT_USER=minioadmin - MINIO_ROOT_PASSWORD=minioadminpassword createbuckets: image: minio/mc depends_on: - minio entrypoint: > /bin/sh -c " /usr/bin/mc alias set myminio http://minio:10000 minioadmin minioadminpassword; /usr/bin/mc admin info myminio; /usr/bin/mc mb myminio/clickhouse; /usr/bin/mc policy set public myminio/clickhouse; exit 0; " nats: container_name: nats hostname: nats image: 'bitnami/nats:latest' ports: - 127.0.0.1:4222:4222 - 127.0.0.1:6222:6222 - 127.0.0.1:8222:8222 environment: - NATS_ENABLE_AUTH=yes - NATS_USERNAME=natsadmin - NATS_PASSWORD=natsadmin #- NATS_TOKEN=natsadmin # healthcheck: # test: ["CMD", "curl", "-f", "http://localhost:4222"] # interval: 1m30s # timeout: 10s # retries: 3 # start_period: 2m