Skip to content

Commit

Permalink
Add the ClickHouse container
Browse files Browse the repository at this point in the history
  • Loading branch information
lamr02n committed Nov 5, 2024
1 parent b7d6ca4 commit e639f8b
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 2 deletions.
1 change: 0 additions & 1 deletion docker/docker-compose.kafka.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ services:
networks:
heidgaf:
ipv4_address: 172.27.0.2
restart: "unless-stopped"
environment:
ZOOKEEPER_CLIENT_PORT: 2181
ZOOKEEPER_SERVER_ID: 1
Expand Down
27 changes: 26 additions & 1 deletion docker/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ include:
- "docker-compose.kafka.yml"

services:

logcollector:
build:
context: ..
Expand All @@ -18,6 +17,8 @@ services:
condition: service_healthy
logserver:
condition: service_started
clickhouse-server:
condition: service_healthy
networks:
heidgaf:
ipv4_address: 172.27.0.7
Expand All @@ -44,6 +45,8 @@ services:
condition: service_healthy
kafka3:
condition: service_healthy
clickhouse-server:
condition: service_healthy
ports:
- 9998:9998
networks:
Expand Down Expand Up @@ -81,6 +84,8 @@ services:
condition: service_started
logcollector:
condition: service_started
clickhouse-server:
condition: service_healthy
networks:
heidgaf:
ipv4_address: 172.27.0.6
Expand Down Expand Up @@ -112,6 +117,8 @@ services:
condition: service_started
logserver:
condition: service_started
clickhouse-server:
condition: service_healthy
networks:
heidgaf:
ipv4_address: 172.27.0.9
Expand Down Expand Up @@ -143,6 +150,8 @@ services:
condition: service_started
logserver:
condition: service_started
clickhouse-server:
condition: service_healthy
networks:
heidgaf:
ipv4_address: 172.27.0.10
Expand All @@ -161,6 +170,22 @@ services:
count: 1 # alternatively, use `count: all` for all GPUs
capabilities: [gpu]

clickhouse-server:
image: clickhouse/clickhouse-server:24.3.12.75-alpine
container_name: clickhouse-server
networks:
heidgaf:
ipv4_address: 172.27.0.11
restart: "unless-stopped"
ports:
- "8123:8123"
- "9000:9000"
healthcheck:
test: [ "CMD-SHELL", "nc -z 127.0.0.1 8123" ]
interval: 10s
timeout: 5s
retries: 3

networks:
heidgaf:
driver: bridge
Expand Down

0 comments on commit e639f8b

Please sign in to comment.