diff --git a/docker-compose.yml b/docker-compose.yml index 6367905..3cca086 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -75,6 +75,12 @@ services: - CACHE_DIR=/data/cache # DATABASE_URL, ADMIN_TOKEN, ARTDAG_CLUSTER_KEY, # L2_SERVER, L2_DOMAIN, IPFS_GATEWAY_URL from .env file + healthcheck: + test: ["CMD", "python", "-c", "import urllib.request; urllib.request.urlopen('http://localhost:8100/')"] + interval: 10s + timeout: 5s + retries: 3 + start_period: 15s volumes: - l1_cache:/data/cache depends_on: @@ -86,6 +92,8 @@ services: - externalnet deploy: replicas: 1 + update_config: + order: start-first restart_policy: condition: on-failure placement: