Skip to content

Commit 82c83de

Browse files
author
brad
committed
Merge branch 'master' of github.com:wenshunbiao/docker
2 parents 727ac62 + 1f9d81c commit 82c83de

File tree

5 files changed

+1327
-0
lines changed

5 files changed

+1327
-0
lines changed

clickhouse/clickhouse.service

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
[Unit]
2+
Description=clickhouse
3+
After=docker.service
4+
Requires=docker.service
5+
6+
[Service]
7+
Restart=always
8+
RestartSec=30
9+
TimeoutStartSec=0
10+
ExecStartPre=-/usr/bin/docker stop clickhouse
11+
ExecStartPre=-/usr/bin/docker kill clickhouse
12+
ExecStartPre=-/usr/bin/docker rm clickhouse
13+
ExecStartPre=-/home/core/docker/shell/install_fleetctl clickhouse
14+
ExecStartPre=-/usr/bin/docker network create nginx-network
15+
ExecStart=/usr/bin/docker run --name clickhouse --net nginx-network -p 8123:8123 -p 9000:9000 --ulimit nofile=262144:262144 -v /home/core/data/clickhouse/data:/var/lib/clickhouse -v /home/core/data/clickhouse/configs:/etc/clickhouse-server yandex/clickhouse-server:21.8.10.19-alpine
16+
ExecStop=/usr/bin/docker stop clickhouse
17+
ExecStop=/usr/bin/docker kill clickhouse
18+
19+
[Install]
20+
WantedBy=multi-user.target
21+
22+
[X-Fleet]
23+
Global=true
24+
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<yandex>
2+
<!-- Listen wildcard address to allow accepting connections from other containers and host network. -->
3+
<listen_host>::</listen_host>
4+
<listen_host>0.0.0.0</listen_host>
5+
<listen_try>1</listen_try>
6+
7+
<!--
8+
<logger>
9+
<console>1</console>
10+
</logger>
11+
-->
12+
</yandex>

0 commit comments

Comments
 (0)