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:
parent
3edc34759d
commit
1f70a46c35
3 changed files with 17 additions and 0 deletions
9
ansible/roles/plausible/files/clickhouse-docker.xml
Normal file
9
ansible/roles/plausible/files/clickhouse-docker.xml
Normal 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>
|
|
@ -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:
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue