-
Notifications
You must be signed in to change notification settings - Fork 42
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
35 lines (33 loc) · 920 Bytes
/
docker-compose.yml
File metadata and controls
35 lines (33 loc) · 920 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
services:
dev:
build:
context: .
dockerfile: Dockerfile
volumes:
- .:/workspace
- cargo-cache:/usr/local/cargo/registry # Cache cargo registry for faster builds
- target-cache:/workspace/target # Cache target directory for faster builds
environment:
- CARGO_HOME=/usr/local/cargo
# Required for testing or running local nodes if added later
network_mode: bridge
keeper:
build:
context: ./keeper
dockerfile: Dockerfile
ports:
- "3000:3000"
volumes:
- ./keeper/data:/app/data
env_file:
- ./keeper/.env
restart: unless-stopped
healthcheck:
test: ["CMD", "node", "-e", "require('http').get('http://localhost:3000/health', (r) => {process.exit(r.statusCode === 200 ? 0 : 1)})"]
interval: 30s
timeout: 3s
start_period: 5s
retries: 3
volumes:
cargo-cache:
target-cache: