-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
33 lines (31 loc) · 948 Bytes
/
docker-compose.yml
File metadata and controls
33 lines (31 loc) · 948 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
version: '3.9'
services:
backend:
build:
context: ./backend
dockerfile: Dockerfile
container_name: backend
network_mode: host
environment:
- RUST_LOG=info
volumes:
# Mount the Monad event ring (read-only)
# Note: Update the host path if your event ring is located elsewhere
- /var/lib/hugetlbfs/user/monad/pagesize-2MB/event-rings:/var/lib/hugetlbfs/user/monad/pagesize-2MB/event-rings:ro
# Optional: Persistent logs volume
- logs:/var/log/eventwatch
restart: unless-stopped
command: ["--server-addr", "0.0.0.0:8443", "--health-server-addr", "127.0.0.1:7000"]
healthcheck:
test: ["CMD-SHELL", "curl -sf http://127.0.0.1:7000/health | grep -q '\"success\": true'"]
interval: 10s
timeout: 5s
retries: 3
start_period: 10s
logging:
driver: json-file
options:
max-size: "10m"
max-file: "3"
volumes:
logs: