feat(clickhouse): Update config (#349)

This commit is contained in:
Vincent Pochet 2024-05-16 16:08:00 +02:00 committed by GitHub
parent 66effdb06f
commit 5d205fb985
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 0 additions and 67 deletions

View File

@ -299,8 +299,6 @@ services:
user: '101:101' user: '101:101'
depends_on: depends_on:
- db - db
- minio
- miniocreatebuckets
- redpanda - redpanda
- redpandacreatetopics - redpandacreatetopics
volumes: volumes:
@ -310,33 +308,3 @@ services:
ports: ports:
- 9000:9000 - 9000:9000
- 8123:8123 - 8123:8123
minio:
image: quay.io/minio/minio
container_name: minio
hostname: minio
command: server --address 0.0.0.0:10000 --console-address 0.0.0.0:10001 /data
ports:
- 10000:10000
environment:
MINIO_ROOT_USER: lago
MINIO_ROOT_PASSWORD: lagopassword
labels:
- "traefik.enable=true"
- "traefik.http.routers.minio.rule=Host(`minio.lago.dev`)"
- "traefik.http.routers.minio.entrypoints=websecure"
- "traefik.http.routers.minio.tls=true"
- "traefik.http.services.minio.loadbalancer.server.port=10001"
miniocreatebuckets:
image: minio/mc
depends_on:
- minio
entrypoint: >
/bin/sh -c "
/usr/bin/mc alias set lagominio http://minio:10000 lago lagopassword;
/usr/bin/mc admin info lagominio;
/usr/bin/mc mb lagominio/clickhouse;
/usr/bin/mc policy set public lagominio/clickhouse;
exit 0;
"

View File

@ -18,39 +18,4 @@
<path>/var/lib/clickhouse/access/</path> <path>/var/lib/clickhouse/access/</path>
</local_directory> </local_directory>
</user_directories> </user_directories>
<storage_configuration>
<disks>
<default>
</default>
<s3>
<type>s3</type>
<endpoint>http://minio:10000/clickhouse/</endpoint>
<access_key_id>lago</access_key_id>
<secret_access_key>lagopassword</secret_access_key>
<region></region>
<metadata_path>/var/lib/clickhouse/disks/s3/</metadata_path>
<cache_enabled>true</cache_enabled>
<data_cache_enabled>true</data_cache_enabled>
<enable_filesystem_cache>true</enable_filesystem_cache>
</s3>
<s3_cache>
<type>cache</type>
<disk>s3</disk>
<path>/var/lib/clickhouse/disks/s3_cache/</path>
<max_size>10Gi</max_size>
</s3_cache>
</disks>
<policies>
<hot_cold>
<volumes>
<hot>
<disk>default</disk>
</hot>
<cold>
<disk>s3</disk>
</cold>
</volumes>
</hot_cold>
</policies>
</storage_configuration>
</clickhouse> </clickhouse>