diff --git a/docker-compose.yml b/docker-compose.yml index a8ca7bb..fe21f48 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -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://:@:" # edit this line with your RPC credentials + DAEMON_URL: "http://:@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 \ No newline at end of file