From ec7ba4af92295ca37d0609a94347a1cfca2f7792 Mon Sep 17 00:00:00 2001 From: Chuseuiti Date: Fri, 22 Feb 2019 14:08:18 -0500 Subject: [PATCH] Restart on sporadic failures on BDB container#2624 To account for sporadic failures on bigchaindb server and container stop, it would be beneficial to include in docker-compose the ability for the containers to restart on failure or docker daemon restart. Issue #2624 --- docker-compose.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/docker-compose.yml b/docker-compose.yml index cf50538c..0d69aa73 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -12,6 +12,7 @@ services: ports: - "27017:27017" command: mongod + restart: always bigchaindb: depends_on: - mongodb @@ -47,6 +48,7 @@ services: timeout: 5s retries: 3 command: '.ci/entrypoint.sh' + restart: always tendermint: image: tendermint/tendermint:0.22.8 # volumes: @@ -56,6 +58,7 @@ services: - "26656:26656" - "26657:26657" command: sh -c "tendermint init && tendermint node --consensus.create_empty_blocks=false --proxy_app=tcp://bigchaindb:26658" + restart: always bdb: image: busybox depends_on: