mirror of
https://github.com/bigchaindb/bigchaindb.git
synced 2024-10-13 13:34:05 +00:00
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
This commit is contained in:
parent
7781f5aae8
commit
ec7ba4af92
@ -12,6 +12,7 @@ services:
|
|||||||
ports:
|
ports:
|
||||||
- "27017:27017"
|
- "27017:27017"
|
||||||
command: mongod
|
command: mongod
|
||||||
|
restart: always
|
||||||
bigchaindb:
|
bigchaindb:
|
||||||
depends_on:
|
depends_on:
|
||||||
- mongodb
|
- mongodb
|
||||||
@ -47,6 +48,7 @@ services:
|
|||||||
timeout: 5s
|
timeout: 5s
|
||||||
retries: 3
|
retries: 3
|
||||||
command: '.ci/entrypoint.sh'
|
command: '.ci/entrypoint.sh'
|
||||||
|
restart: always
|
||||||
tendermint:
|
tendermint:
|
||||||
image: tendermint/tendermint:0.22.8
|
image: tendermint/tendermint:0.22.8
|
||||||
# volumes:
|
# volumes:
|
||||||
@ -56,6 +58,7 @@ services:
|
|||||||
- "26656:26656"
|
- "26656:26656"
|
||||||
- "26657:26657"
|
- "26657:26657"
|
||||||
command: sh -c "tendermint init && tendermint node --consensus.create_empty_blocks=false --proxy_app=tcp://bigchaindb:26658"
|
command: sh -c "tendermint init && tendermint node --consensus.create_empty_blocks=false --proxy_app=tcp://bigchaindb:26658"
|
||||||
|
restart: always
|
||||||
bdb:
|
bdb:
|
||||||
image: busybox
|
image: busybox
|
||||||
depends_on:
|
depends_on:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user