From d3ec687d1929e01396168ea2593f1350b56fcff6 Mon Sep 17 00:00:00 2001 From: patcher99 Date: Thu, 14 Mar 2024 22:06:09 +0530 Subject: [PATCH] adding docker compose --- docker-compose.yml | 52 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 docker-compose.yml diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..ebc8adf --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,52 @@ +version: '3.8' + +services: + clickhouse: + image: clickhouse/clickhouse-server:24.1.5 + container_name: clickhouse + environment: + CLICKHOUSE_PASSWORD: ${DOKU_DB_PASSWORD:-DOKU} + CLICKHOUSE_USER: ${DOKU_DB_USER:-default} + volumes: + - clickhouse-data:/var/lib/clickhouse + ports: + - "9000:9000" + - "8123:8123" + restart: always + + doku-ingester: + image: ghcr.io/dokulabs/doku-ingester:latest + container_name: doku-ingester + environment: + DOKU_DB_HOST: clickhouse + DOKU_DB_PORT: 9000 + DOKU_DB_NAME: ${DOKU_DB_NAME:-default} + DOKU_DB_USER: ${DOKU_DB_USER:-default} + DOKU_DB_PASSWORD: ${DOKU_DB_PASSWORD:-DOKU} + ports: + - "9044:9044" + depends_on: + - clickhouse + restart: always + + doku-client: + image: ghcr.io/dokulabs/doku-client:latest + container_name: doku-client + environment: + INIT_DB_HOST: clickhouse + INIT_DB_PORT: 8123 + INIT_DB_DATABASE: ${DOKU_DB_NAME:-default} + INIT_DB_USERNAME: ${DOKU_DB_USER:-default} + INIT_DB_PASSWORD: ${DOKU_DB_PASSWORD:-DOKU} + SQLITE_DATABASE_URL: file:/app/client/data/data.db + ports: + - "3000:3000" + depends_on: + - clickhouse + volumes: + - doku-client-data:/app/client/data + restart: always + +volumes: + clickhouse-data: + doku-client-data: \ No newline at end of file