Closed sindhubb closed 2 months ago
I am able to add postgres database (to metabase ui) which is also running as a container in my docker.
That's how I run it for the tests and local development as well (please ignore clickhouse_tls
): https://github.com/ClickHouse/metabase-clickhouse-driver/blob/master/docker-compose.yml. Paths are assuming that the root folder is the Metabase repo, and the driver repo is checked out to modules/drivers/clickhouse
.
If we reduce docker-compose.yml
to something like:
version: '3.8'
services:
clickhouse:
image: 'clickhouse/clickhouse-server:23.12-alpine'
container_name: 'metabase-driver-clickhouse-server'
ports:
- '8123:8123'
- '9000:9000'
ulimits:
nofile:
soft: 262144
hard: 262144
metabase:
image: metabase/metabase:v0.48.1
container_name: metabase-with-clickhouse-driver
environment:
'MB_HTTP_TIMEOUT': '5000'
'JAVA_TIMEZONE': 'UTC'
ports:
- '3000:3000'
volumes:
- './clickhouse.metabase-driver.jar:/plugins/clickhouse.jar'
Having clickhouse.metabase-driver.jar
next to it, does it work for you? This should not require docker network connect
cause they will be in the same network already, and I suspect something might go wrong with that command.
Describe the bug
Steps to reproduce
Expected behaviour
Expect to connect to clickhouse running on Docker container via Metabase container. I have made metabase part of the docker network locally as well with
docker network connect <local-network-name>
.Error log
I see the following error in logs of metabase container:
Configuration
Environment
ClickHouse server
clickhouse/clickhouse-server:latest-alpine