services:
  laconicd:
    restart: unless-stopped
    image: cerc-io/laconicd:local-test
    command: ["sh", "/docker-entrypoint-scripts.d/create-fixturenet.sh"]
    volumes:
      - laconicd/init.sh:/docker-entrypoint-scripts.d/create-fixturenet.sh
    healthcheck:
      test: ["CMD", "curl", "-v", "http://127.0.0.1:6060"]
      interval: 1s
      timeout: 5s
      retries: 30
    ports:
      - "6060"
      - "26657"
      - "26656"
      - "9473"
      - "8545"
      - "8546"
      - "9090"
      - "9091"
      - "1317"

  cli-test-runner:
    image: cerc/laconic-registry-cli:local-test
    depends_on:
      laconicd:
        condition: service_healthy
    command: tail -F /dev/null