diff --git a/.env b/.env index 03ba094..c72b7af 100644 --- a/.env +++ b/.env @@ -2,3 +2,4 @@ CLICKHOUSE_USER=default CLICKHOUSE_PASSWORD=default CLICKHOUSE_DB=default CLICKHOUSE_PORT=8123 +CLICKHOUSE_DEFAULT_ACCESS_MANAGEMENT=1 \ No newline at end of file diff --git a/compose.yml b/compose.yml index 04b3c6e..9ef3c97 100644 --- a/compose.yml +++ b/compose.yml @@ -15,12 +15,12 @@ services: clickhouse: image: clickhouse/clickhouse-server:24 environment: - - CLICKHOUSE_DB=default - - CLICKHOUSE_USER=default - - CLICKHOUSE_PASSWORD=default - - CLICKHOUSE_DEFAULT_ACCESS_MANAGEMENT=1 + - CLICKHOUSE_DB=${CLICKHOUSE_DB} + - CLICKHOUSE_USER=${CLICKHOUSE_USER} + - CLICKHOUSE_PASSWORD=${CLICKHOUSE_USER} + - CLICKHOUSE_DEFAULT_ACCESS_MANAGEMENT=${CLICKHOUSE_DEFAULT_ACCESS_MANAGEMENT} ports: - - '8123:8123' + - '${CLICKHOUSE_PORT:-8123}:8123' ulimits: nofile: soft: 262144