(docker): update electrumx-plm container networking and config
- Replace host networking with explicit port mapping and host gateway - Update DAEMON_URL to use host.docker.internal - Remove redundant healthcheck configuration
This commit is contained in:
@@ -3,14 +3,17 @@ services:
|
||||
image: electrumx-plm:local
|
||||
container_name: electrumx-plm
|
||||
restart: unless-stopped
|
||||
|
||||
network_mode: host
|
||||
extra_hosts:
|
||||
- "host.docker.internal:host-gateway"
|
||||
ports:
|
||||
- "50001:50001" # TCP
|
||||
- "50002:50002" # SSL
|
||||
|
||||
environment:
|
||||
COIN: "Palladium"
|
||||
NET: "mainnet"
|
||||
|
||||
DAEMON_URL: "http://<rpcuser>:<rpcpassword>@<rpchost>:<rpcport>" # edit this line with your RPC credentials
|
||||
DAEMON_URL: "http://<rpcuser>:<rpcpassword>@host.docker.internal:2332/" # RPC credentials
|
||||
|
||||
SERVICES: "tcp://0.0.0.0:50001,ssl://0.0.0.0:50002"
|
||||
|
||||
@@ -30,11 +33,4 @@ services:
|
||||
hard: 1048576
|
||||
|
||||
volumes:
|
||||
- ./data:/data
|
||||
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "curl --silent --fail --user davide:password -H 'content-type: text/plain' --data-binary '{\"jsonrpc\":\"1.0\",\"id\":\"x\",\"method\":\"getblockchaininfo\",\"params\":[]}' http://127.0.0.1:2332/ >/dev/null || exit 1"]
|
||||
interval: 15s
|
||||
timeout: 5s
|
||||
retries: 6
|
||||
start_period: 20s
|
||||
- ./data:/data
|
||||
Reference in New Issue
Block a user