-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
47 lines (45 loc) · 1.25 KB
/
Copy pathdocker-compose.dev.yml
File metadata and controls
47 lines (45 loc) · 1.25 KB
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
45
46
47
services:
rustlog:
build:
context: .
target: runtime
image: rustlog:dev
restart: unless-stopped
init: true
depends_on:
clickhouse:
condition: service_healthy
environment:
RUSTLOG_CLICKHOUSE_URL: "http://clickhouse:8123"
RUSTLOG_CLICKHOUSE_DB: "rustlog"
RUSTLOG_CLICKHOUSE_USERNAME: "${CLICKHOUSE_USER:-user}"
RUSTLOG_CLICKHOUSE_PASSWORD: "${CLICKHOUSE_PASSWORD:?Set CLICKHOUSE_PASSWORD in .env}"
RUSTLOG_LISTEN_ADDRESS: "0.0.0.0:8026"
volumes:
- "./config.json:/app/config.json:ro"
ports:
- 8026:8026
clickhouse:
image: clickhouse/clickhouse-server:26.5.6.64
restart: unless-stopped
volumes:
- "rustlog_ch_data:/var/lib/clickhouse:rw"
environment:
CLICKHOUSE_DB: "rustlog"
CLICKHOUSE_USER: "${CLICKHOUSE_USER:-user}"
CLICKHOUSE_PASSWORD: "${CLICKHOUSE_PASSWORD:?Set CLICKHOUSE_PASSWORD in .env}"
ports:
- 8123:8123
- 9000:9000
ulimits:
nofile:
soft: 262144
hard: 262144
healthcheck:
test: ["CMD-SHELL", "wget --no-verbose --tries=1 --spider http://localhost:8123/ping || exit 1"]
interval: 10s
timeout: 5s
retries: 5
start_period: 10s
volumes:
rustlog_ch_data: