initial commit

This commit is contained in:
Hampus Kraft
2026-01-01 20:42:59 +00:00
commit 2f557eda8c
9029 changed files with 1490197 additions and 0 deletions

View File

@@ -0,0 +1,52 @@
services:
clickhouse:
image: clickhouse/clickhouse-server:24.8
hostname: clickhouse
env_file:
- /etc/fluxer/clickhouse.env
volumes:
- clickhouse_data:/var/lib/clickhouse
- clickhouse_logs:/var/log/clickhouse-server
- ./conf/config.xml:/etc/clickhouse-server/config.d/custom.xml:ro
- ./conf/users.xml:/etc/clickhouse-server/users.d/custom.xml:ro
networks:
- fluxer-shared
ports:
- target: 8123
published: 8123
protocol: tcp
mode: host
- target: 9000
published: 9000
protocol: tcp
mode: host
deploy:
replicas: 1
restart_policy:
condition: on-failure
delay: 10s
max_attempts: 3
resources:
limits:
cpus: '4'
memory: 16G
healthcheck:
test: ['CMD-SHELL', 'wget -qO- http://127.0.0.1:8123/ping || exit 1']
interval: 10s
timeout: 5s
retries: 5
start_period: 30s
ulimits:
nofile:
soft: 262144
hard: 262144
networks:
fluxer-shared:
external: true
volumes:
clickhouse_data:
driver: local
clickhouse_logs:
driver: local

View File

@@ -0,0 +1,20 @@
<?xml version="1.0"?>
<clickhouse>
<logger>
<level>information</level>
<console>true</console>
</logger>
<max_concurrent_queries>100</max_concurrent_queries>
<max_connections>4096</max_connections>
<mark_cache_size>5368709120</mark_cache_size>
<uncompressed_cache_size>8589934592</uncompressed_cache_size>
<merge_tree>
<max_suspicious_broken_parts>5</max_suspicious_broken_parts>
</merge_tree>
<background_pool_size>16</background_pool_size>
<background_schedule_pool_size>16</background_schedule_pool_size>
</clickhouse>

View File

@@ -0,0 +1,14 @@
<?xml version="1.0"?>
<clickhouse>
<users>
<fluxer>
<password from_env="CLICKHOUSE_PASSWORD"/>
<networks>
<ip>::/0</ip>
</networks>
<profile>default</profile>
<quota>default</quota>
<access_management>1</access_management>
</fluxer>
</users>
</clickhouse>