-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
44 lines (42 loc) · 1000 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
44 lines (42 loc) · 1000 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
services:
redis:
image: redis:8-alpine
container_name: task-redis
ports:
- "6379:6379"
volumes:
- redis-data:/data
command: redis-server --appendonly yes
restart: unless-stopped
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 10s
timeout: 3s
retries: 3
clickhouse:
image: clickhouse/clickhouse-server:26.4
container_name: task-clickhouse
ports:
- "8123:8123"
- "9000:9000"
environment:
CLICKHOUSE_USER: task
CLICKHOUSE_PASSWORD: password
CLICKHOUSE_DB: localize
ulimits:
nofile:
soft: 262144
hard: 262144
volumes:
- clickhouse-data:/var/lib/clickhouse
restart: unless-stopped
healthcheck:
test: ["CMD", "clickhouse-client", "--user", "task", "--password", "password", "--query", "SELECT 1"]
interval: 10s
timeout: 3s
retries: 5
volumes:
redis-data:
driver: local
clickhouse-data:
driver: local