0

I am trying to get multiple test nodes using a single docker compose file.

version: "3"

services:
  node1:
    image: stellar/quickstart
    ports:
      - 8001:8000
      - 11630:11626
      - 11629:11625
    volumes:
      - ./node1/run/stellar:/opt/stellar
      - ./node1/run/log:/var/log/supervisor
    environment:
      - PGPASS=1
      - NETWORK=testnet

  node2:
    image: stellar/quickstart
    ports:
      - 8002:8000
      - 11628:11626
      - 11627:11625
    volumes:
      - ./node2/run/stellar:/opt/stellar
      - ./node2/run/log:/var/log/supervisor
    environment:
      - PGPASS=1
      - NETWORK=testnet 

  node3:
    image: stellar/quickstart
    ports:
      - 8003:8000
      - 11632:11626
      - 11631:11625
    volumes:
      - ./node3/run/stellar:/opt/stellar
      - ./node3/run/log:/var/log/supervisor
    environment:
      - PGPASS=1
      - NETWORK=testnet    

  node4:
    image: stellar/quickstart
    ports:
      - 8004:8000
      - 11634:11626
      - 11633:11625
    volumes:
      - ./node4/run/stellar:/opt/stellar
      - ./node4/run/log:/var/log/supervisor
    environment:
      - PGPASS=1
      - NETWORK=testnet

  node5:
    image: stellar/quickstart
    ports:
      - 8005:8000
      - 11636:11626
      - 11635:11625
    volumes:
      - ./node5/run/stellar:/opt/stellar
      - ./node5/run/log:/var/log/supervisor
    environment:
      - PGPASS=1
      - NETWORK=testnet

Everything seems working fine when I do docker-compose up, but when I query to any horizon server using curl, it gives error "curl: (52) Empty reply from server". Sometimes it works for one or two horizon servers. I don't know what is the error.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.