ClickHouse/docker/test/integration/runner/compose/docker_compose_nats.yml

24 lines
735 B
YAML
Raw Normal View History

2022-05-16 10:03:28 +00:00
version: '2.3'
services:
nats:
image: nats
command: "--cluster_name NATS --cluster nats://0.0.0.0:6222 --http_port 8222 "
networks: ["nats"]
nats-1:
ports:
- "${NATS_EXTERNAL_PORT_USER}:${NATS_INTERNAL_PORT}"
image: nats
command: "--cluster_name NATS --cluster nats://0.0.0.0:6222 --routes=nats://ruser:T0pS3cr3t@nats:6222 --user click --pass house"
networks: ["nats"]
depends_on: ["nats"]
nats-2:
ports:
- "${NATS_EXTERNAL_PORT_TOKEN}:${NATS_INTERNAL_PORT}"
image: nats
command: "--cluster_name NATS --cluster nats://0.0.0.0:6222 --routes=nats://ruser:T0pS3cr3t@nats:6222 --auth clickhouse"
networks: ["nats"]
depends_on: ["nats"]
networks:
nats:
name: nats