-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
63 lines (61 loc) · 1.74 KB
/
docker-compose.yml
File metadata and controls
63 lines (61 loc) · 1.74 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
services:
aviand:
# Build from local ./aviand folder.
# Place a Linux "aviand" binary at ./aviand/aviand (relative to repo root).
build: ./aviand
image: avian/aviand:local
container_name: aviand
restart: unless-stopped
# Give aviand enough time to flush databases on shutdown (default is 10s)
stop_grace_period: 60s
env_file: .env
command: >-
-datadir=/data
-server=1
-listen=1
-txindex=1
-upnp=${AVIAN_UPNP:-0}
-disablewallet=${AVIAN_DISABLE_WALLET:-1}
-rpcbind=0.0.0.0
-rpcallowip=0.0.0.0/0
-rpcuser=${AVIAN_RPC_USER:-avianrpc}
-rpcpassword=${AVIAN_RPC_PASS:-change_me}
-rpcport=${AVIAN_RPC_PORT:-7896}
volumes:
- ./data:/data
ports:
# P2P
- "7895:7895"
# 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:7896:7896"
backend:
build: ./backend
container_name: avian-node-helper-backend
restart: unless-stopped
env_file: .env
environment:
# Backend should talk to container name "aviand"
- AVIAN_RPC_HOST=aviand
ports:
- "3001:3001"
depends_on:
- aviand
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: avian-node-helper-frontend
restart: unless-stopped
ports:
- "3000:80"
depends_on:
- backend