39 lines
1.8 KiB
YAML
39 lines
1.8 KiB
YAML
# ElectrumX for Palladium, next to the Palladium node container.
|
|
# Start the node first: it creates the "palladium" network. Setup and usage: README.md
|
|
services:
|
|
electrumx:
|
|
build: .
|
|
image: plm-electrumx
|
|
restart: unless-stopped
|
|
environment:
|
|
# the node is reached by name on the shared network; user and password are those of its palladium.conf
|
|
DAEMON_URL: http://${PLM_RPC_USER}:${PLM_RPC_PASSWORD}@palladiumd:2332/
|
|
CACHE_MB: ${CACHE_MB:-1200}
|
|
# address announced to other servers and clients, if this server is public (tcp://host:50001)
|
|
REPORT_SERVICES: ${REPORT_SERVICES:-}
|
|
# donation address sent to the clients (server.donation_address); empty: none
|
|
DONATION_ADDRESS: ${DONATION_ADDRESS:-}
|
|
# SSL: on by default, with a self-signed certificate generated on the first start (docker-entrypoint.sh)
|
|
SSL_ENABLED: ${SSL_ENABLED:-true}
|
|
SSL_HOSTNAME: ${SSL_HOSTNAME:-electrumx}
|
|
# your own certificate instead (paths inside the container, mount the files with an override file)
|
|
SSL_CERTFILE: ${SSL_CERTFILE:-}
|
|
SSL_KEYFILE: ${SSL_KEYFILE:-}
|
|
ports:
|
|
- "${ELECTRUMX_TCP_PORT:-50001}:50001"
|
|
- "${ELECTRUMX_SSL_PORT:-50002}:50002"
|
|
# data directory of the host (like ~/.palladium for the node): db/ is the database (can be rebuilt from the node),
|
|
# ssl/ the certificate (keep it, clients pin it). Create it first, see README.md
|
|
volumes:
|
|
- ${ELECTRUMX_DATADIR:-~/.plm-electrumx}/db:/var/lib/electrumx
|
|
- ${ELECTRUMX_DATADIR:-~/.plm-electrumx}/ssl:/var/lib/electrumx-ssl
|
|
# owner of the data directory: PLM_UID/PLM_GID if it is not user 1000
|
|
user: "${PLM_UID:-1000}:${PLM_GID:-1000}"
|
|
stop_grace_period: 2m # lets the server flush the db on shutdown
|
|
networks: [palladium]
|
|
|
|
networks:
|
|
palladium:
|
|
name: palladium
|
|
external: true
|