From cdb907fedabaec2ec7c352f64d7b7003d8734ab9 Mon Sep 17 00:00:00 2001 From: kenshin-samourai Date: Fri, 27 Dec 2019 22:06:45 +0100 Subject: [PATCH] switch restart policies of containers to always (except bitcoind) --- docker/my-dojo/docker-compose.yaml | 8 ++++---- docker/my-dojo/overrides/explorer.install.yaml | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/docker/my-dojo/docker-compose.yaml b/docker/my-dojo/docker-compose.yaml index 8753b72..b4e82f9 100644 --- a/docker/my-dojo/docker-compose.yaml +++ b/docker/my-dojo/docker-compose.yaml @@ -10,7 +10,7 @@ services: env_file: - ./.env - ./conf/docker-mysql.conf - restart: on-failure + restart: always expose: - "3306" volumes: @@ -32,7 +32,7 @@ services: - ./conf/docker-bitcoind.conf - ./conf/docker-explorer.conf - ./conf/docker-node.conf - restart: on-failure + restart: always command: "/home/node/app/wait-for-it.sh db:3306 --timeout=720 --strict -- /home/node/app/restart.sh" expose: - "8080" @@ -55,7 +55,7 @@ services: env_file: - ./.env - ./conf/docker-common.conf - restart: on-failure + restart: always command: "/wait-for node:8080 --timeout=720 -- nginx" expose: - "80" @@ -79,7 +79,7 @@ services: - ./.env - ./conf/docker-explorer.conf - ./conf/docker-tor.conf - restart: on-failure + restart: always command: /restart.sh volumes: - data-tor:/var/lib/tor diff --git a/docker/my-dojo/overrides/explorer.install.yaml b/docker/my-dojo/overrides/explorer.install.yaml index 5c3d3d1..06b97a1 100644 --- a/docker/my-dojo/overrides/explorer.install.yaml +++ b/docker/my-dojo/overrides/explorer.install.yaml @@ -10,7 +10,7 @@ services: - ./.env - ./conf/docker-bitcoind.conf - ./conf/docker-explorer.conf - restart: on-failure + restart: always command: "/home/node/app/restart.sh" expose: - "3002"