forked from sparkleshinesea/electrumx-rad
-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
32 lines (32 loc) · 956 Bytes
/
docker-compose.yaml
File metadata and controls
32 lines (32 loc) · 956 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
version: "3"
services:
electrumx:
build:
context: .
dockerfile: ./contrib/radiant/Dockerfile
container_name: electrumx_server
ports:
- "50010:50010" # Port for TCP connections
- "50012:50012" # Port for SSL connections
cap_add:
- SYS_PTRACE
environment:
- DAEMON_URL=${DAEMON_URL}
- COIN=${COIN}
- NET=${NET}
- REQUEST_TIMEOUT=${REQUEST_TIMEOUT}
- DB_DIRECTORY=${DB_DIRECTORY}
- DB_ENGINE=${DB_ENGINE}
- SERVICES=${SERVICES}
- SSL_CERTFILE=${SSL_CERTFILE}
- SSL_KEYFILE=${SSL_KEYFILE}
- ALLOW_ROOT=${ALLOW_ROOT}
- CACHE_MB=${CACHE_MB}
- MAX_SESSIONS=${MAX_SESSIONS}
- MAX_SEND=${MAX_SEND}
- MAX_RECV=${MAX_RECV}
network_mode: "host"
stop_grace_period: 120s
volumes:
- ./electrumdb:/root/electrumdb # Mount local directory for database and SSL keys
entrypoint: ["python3", "electrumx_server"]