Add custom clickhouse config

This changes the default log level to warning, to ensure the log file isn't being hammered
This commit is contained in:
Jake Howard 2020-08-26 08:54:37 +01:00
parent 3edc34759d
commit 1f70a46c35
Signed by: jake
GPG Key ID: 57AFB45680EDD477
3 changed files with 17 additions and 0 deletions

View File

@ -0,0 +1,9 @@
<yandex>
<!-- Listen wildcard address to allow accepting connections from other containers and host network. -->
<listen_host>::</listen_host>
<listen_host>0.0.0.0</listen_host>
<listen_try>1</listen_try>
<logger>
<level>warning</level>
</logger>
</yandex>

View File

@ -33,6 +33,7 @@ services:
restart: unless-stopped
volumes:
- /mnt/tank/dbs/clickhouse/plausible:/var/lib/clickhouse
- /mnt/tank/dbs/clickhouse/docker_related_config.xml:/etc/clickhouse-server/config.d/docker_related_config.xml:ro
tmpfs:
- /var/log/clickhouse-server
ulimits:

View File

@ -6,6 +6,13 @@
mode: "{{ docker_compose_directory_mask }}"
become: true
- name: Install clickhouse config
template:
src: files/clickhouse-docker.xml
dest: /mnt/tank/dbs/clickhouse/docker_related_config.xml
notify: restart plausible
become: true
- name: Install compose file
template:
src: files/docker-compose.yml