forked from AvianNetwork/avian-node-helper
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
70 lines (68 loc) · 2.3 KB
/
Copy pathdocker-compose.yml
File metadata and controls
70 lines (68 loc) · 2.3 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
services:
radiantd:
# Downloads the pinned Radiant Core release from GitHub during build
# (radiantd/Dockerfile sets ARG RADIANT_VERSION=v3.1.2).
build: ./radiantd
image: radiant-core:v3.1.2
container_name: radiantd
restart: unless-stopped
# Give radiantd enough time to flush databases on shutdown (default is 10s)
stop_grace_period: 60s
env_file: .env
# The backend reaches radiantd by container name (RADIANT_RPC_HOST=radiantd),
# so that Host must be allowlisted with -rpcallowhost below — without it,
# radiantd v3.1.0+ replies 403 Forbidden to the backend's RPC calls.
# NOTE: put ONLY flag tokens inside the folded `command: >-` scalar below — a
# `#` there is literal data, not a comment, and would corrupt the arg list.
command: >-
radiantd
-datadir=/home/radiant/.radiant
-server=1
-listen=1
-txindex=1
-upnp=${RADIANT_UPNP:-0}
-disablewallet=${RADIANT_DISABLE_WALLET:-1}
-rpcbind=0.0.0.0
-rpcallowip=0.0.0.0/0
-rpcallowhost=radiantd
-rpcuser=${RADIANT_RPC_USER:-radiantrpc}
-rpcpassword=${RADIANT_RPC_PASS:?set a strong RADIANT_RPC_PASS (e.g. openssl rand -hex 32) in .env}
-rpcport=${RADIANT_RPC_PORT:-7332}
volumes:
- ./data:/home/radiant/.radiant
ports:
# P2P
- "7333:7333"
# RPC - NOT exposed externally for security.
# Backend connects via Docker internal network.
# Uncomment only if you need direct RPC access from host:
# - "127.0.0.1:7332:7332"
backend:
build: ./backend
container_name: radiant-node-helper-backend
restart: unless-stopped
env_file: .env
environment:
# Backend should talk to container name "radiantd"
- RADIANT_RPC_HOST=radiantd
ports:
- "3001:3001"
depends_on:
- radiantd
volumes:
- ./scripts:/app/scripts:ro
# OPTIONAL: allow backend to read the node's debug.log
- ./data:/data:ro
# OPTIONAL: enable docker control by mounting the Docker socket:
- /var/run/docker.sock:/var/run/docker.sock
frontend:
build:
context: ./frontend
args:
VITE_API_BASE: http://localhost:3001
container_name: radiant-node-helper-frontend
restart: unless-stopped
ports:
- "3000:80"
depends_on:
- backend