1

how would you do to restart the container service every 60 seconds I tried sleep but it doesn't work for me:

spark:
    image: jaegertracing/spark-dependencies
    environment:
      - STORAGE=elasticsearch
      - ES_NODES=http://localhost:9200
    command: [ /bin/bash -c sleep 20 ]
    restart: always
    networks:
      - elastic-jaeger
2

you could use healthchecks combined with restart: always

healthcheck:
  test: curl -sS http://127.0.0.1 || exit 1
  interval: 5s
  timeout: 10s
  retries: 3

Your Answer

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