Hey there,
The ClickHouse database has two docker packages to get it running: the actual server, and the CLI client.
It comes in two dockerfile images and the docker-compose
syntax looks like this:
clickhouse-server:
image: yandex/clickhouse-server
ports:
- "8123:8123"
- "9000:9000"
- "9009:9009"
ulimits:
nproc: 65535
nofile:
soft: 262144
hard: 262144
volumes:
- clickhouse-data:/var/lib/clickhouse
- ./clickhouse/docker/clickhouse-config.xml:/etc/clickhouse-server/config.d/override.xml
# run client with: docker-compose run clickhouse-client
clickhouse-client:
image: yandex/clickhouse-client
entrypoint: ["clickhouse-client", "--host=clickhouse-server"]
depends_on:
- clickhouse-server
How should we run this in Fly.io?