From 360a65d9da3a2563adc6488198f6df489a92bd16 Mon Sep 17 00:00:00 2001 From: jash Date: Tue, 9 Oct 2018 09:01:07 +0200 Subject: [PATCH] docker containers restart on crash and reboot now --- .../app/templates/installer/docker/docker-compose.yaml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/install/generator-cyphernode/generators/app/templates/installer/docker/docker-compose.yaml b/install/generator-cyphernode/generators/app/templates/installer/docker/docker-compose.yaml index 28b9f1c..7700302 100644 --- a/install/generator-cyphernode/generators/app/templates/installer/docker/docker-compose.yaml +++ b/install/generator-cyphernode/generators/app/templates/installer/docker/docker-compose.yaml @@ -32,7 +32,7 @@ services: # constraints: [node.hostname==dev] networks: - cyphernodenet - + restart: always proxycron: environment: - "PROXY_URL=proxy:8888/executecallbacks" @@ -42,7 +42,7 @@ services: # constraints: [node.hostname==dev] networks: - cyphernodenet - + restart: always pycoin: # Pycoin image: cyphernode/pycoin @@ -58,6 +58,7 @@ services: # constraints: [node.hostname==dev] networks: - cyphernodenet + restart: always <% if ( features.indexOf('lightning') !== -1 && lightning_implementation === 'c-lightning' ) { %> lightning: image: cyphernode/clightning @@ -70,6 +71,7 @@ services: # constraints: [node.hostname==dev] networks: - cyphernodenet + restart: always <% } %> <% if( bitcoin_mode === 'internal' ) { %> bitcoin: @@ -82,6 +84,7 @@ services: - "<%= bitcoin_datapath%>:/bitcoinuser/.bitcoin" networks: - cyphernodenet + restart: always <% } %> networks: cyphernodenet: