-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
29 lines (27 loc) · 891 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
29 lines (27 loc) · 891 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
# Local dev dependencies only (not production topology).
# CockroachDB admin UI: http://localhost:8089 (orchestrator uses :8080 by default on the host).
# Image tags are pinned for reproducible `docker compose pull`.
services:
cockroach:
image: cockroachdb/cockroach:v24.3.4
# Do not set --listen-addr=0.0.0.0: v24+ rejects it for insecure start-single-node.
# Image defaults work with Docker port publishing.
command: start-single-node --insecure
ports:
- "26257:26257"
- "8089:8080"
healthcheck:
test: ["CMD", "cockroach", "sql", "--insecure", "--host=localhost", "-e", "SELECT 1"]
interval: 5s
timeout: 5s
retries: 10
start_period: 15s
redis:
image: redis:7.4.2-alpine
ports:
- "6379:6379"
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 3s
timeout: 3s
retries: 5