@@ -23,6 +23,7 @@ This role requires Ansible 2.0 or higher.
23
23
# host
24
24
clickhouse_docker_host_data_folder : " /docker/clickhouse-data"
25
25
clickhouse_docker_host_config_folder : " /docker/clickhouse-config"
26
+ clickhouse_docker_host_logs_folder : " /docker/clickhouse-logs"
26
27
27
28
# docker
28
29
clickhouse_docker_version : latest
@@ -32,6 +33,7 @@ clickhouse_docker_container_name: clickhouse
32
33
clickhouse_docker_bind_mounts :
33
34
- " {{clickhouse_docker_host_data_folder}}:/var/lib/clickhouse"
34
35
- " {{clickhouse_docker_host_config_folder}}:/etc/clickhouse-server/conf.d"
36
+ - " {{clickhouse_docker_host_logs_folder}}:/var/log/clickhouse-server"
35
37
clickhouse_docker_ulimits :
36
38
- " nofile:262144:262144"
37
39
clickhouse_docker_published_ports :
@@ -41,7 +43,9 @@ clickhouse_docker_published_ports:
41
43
clickhouse_docker_exposed_ports :
42
44
- 8123
43
45
- 9000
44
- - 9009
46
+ - 9009
47
+ clickhouse_docker_log_driver : json-file
48
+ clickhouse_docker_log_options :
45
49
` ` `
46
50
47
51
##### ClickHouse server settings
@@ -128,6 +132,10 @@ clickhouse_docker_user_profiles:
128
132
http_port : 8124
129
133
tcp_port : 9001
130
134
listen_host : 0.0.0.0
135
+ - clickhouse_docker_log_driver : syslog
136
+ - clickhouse_docker_log_options :
137
+ syslog-facility : local0
138
+ tag : " {{ clickhouse_docker_container_name }}"
131
139
roles :
132
140
- ansible-role-docker-clickhouse
133
141
` ` `
0 commit comments