-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
37 lines (35 loc) · 905 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
37 lines (35 loc) · 905 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
# Cardinal — single-node stack.
#
# carded (C++ engine) and cardinal (Go control plane) communicate over a Unix
# domain socket on a shared volume. carded also keeps its WAL there so data
# survives container restarts.
services:
carded:
build: ./engine
volumes:
- carde-run:/run/carde
healthcheck:
# the socket file existing is our readiness signal
test: ["CMD", "test", "-S", "/run/carde/carde.sock"]
interval: 2s
timeout: 2s
retries: 15
restart: unless-stopped
cardinal:
build: ./control
depends_on:
carded:
condition: service_healthy
ports:
- "8080:8080"
volumes:
- carde-run:/run/carde
command:
- "--listen=:8080"
- "--engine=/run/carde/carde.sock"
- "--node=node-0"
- "--max-inflight=512"
- "--max-series=1000000"
restart: unless-stopped
volumes:
carde-run: