-
Notifications
You must be signed in to change notification settings - Fork 19
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
47 lines (44 loc) · 1.15 KB
/
docker-compose.dev.yml
File metadata and controls
47 lines (44 loc) · 1.15 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
# Single-node dev stack: SurrealDB standalone + RustFS single-node.
# No TiKV cluster — uses SurrealDB's built-in SurrealKV storage.
# No NATS — single-node mode uses in-process notifications.
services:
surrealdb:
image: surrealdb/surrealdb:v3
user: root
ports:
- "8100:8000"
command:
- start
- --log=info
- --user=root
- --pass=root
- surrealkv:///data/maelstrom.db
volumes:
- surrealdb_data:/data
healthcheck:
test: ["CMD", "surreal", "is-ready", "--conn", "http://localhost:8000"]
interval: 5s
timeout: 3s
retries: 5
start_period: 5s
rustfs:
image: rustfs/rustfs:latest
ports:
- "9100:9000"
- "9101:9001"
environment:
RUSTFS_ACCESS_KEY: maelstrom
RUSTFS_SECRET_KEY: maelstrom-secret
RUSTFS_VOLUMES: /data
RUSTFS_CONSOLE_ENABLE: "true"
command: server /data --console-address ":9001"
volumes:
- rustfs_data:/data
healthcheck:
test: ["CMD-SHELL", "curl -sf http://localhost:9000/health || exit 1"]
interval: 5s
timeout: 3s
retries: 5
volumes:
surrealdb_data:
rustfs_data: