-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.relay.yml
More file actions
40 lines (38 loc) · 967 Bytes
/
docker-compose.relay.yml
File metadata and controls
40 lines (38 loc) · 967 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
38
39
40
version: '3.8'
services:
gork-relay:
build:
context: .
dockerfile: Dockerfile.relay
container_name: gork-relay
restart: unless-stopped
ports:
- "4001:4001/tcp" # P2P relay
- "4001:4001/udp" # P2P relay (QUIC)
- "9090:9090" # Metrics
environment:
- RUST_LOG=info
# Set your NEAR account here
# - NEAR_ACCOUNT=relay.gork-agent.testnet
volumes:
# Mount NEAR credentials (read-only)
- ~/.near-credentials:/home/gork/.near-credentials:ro
# Persist agent data
- relay-data:/home/gork/.gork-agent
command:
- relay
- --port
- "4001"
- --max-circuits
- "1000"
- --metrics
- --metrics-port
- "9090"
healthcheck:
test: ["CMD", "wget", "--quiet", "--tries=1", "--spider", "http://localhost:9090/health"]
interval: 30s
timeout: 10s
retries: 3
start_period: 40s
volumes:
relay-data: