From 235c50d0f00f9821d3256761b1bd4ef470d5f159 Mon Sep 17 00:00:00 2001 From: "nicolas.dorier" Date: Wed, 17 Jan 2018 22:36:59 +0900 Subject: [PATCH] restart postgres if it fails --- Production/docker-compose.btc-ltc.yml | 1 + Production/docker-compose.btc.yml | 1 + Production/docker-compose.yml | 1 + 3 files changed, 3 insertions(+) diff --git a/Production/docker-compose.btc-ltc.yml b/Production/docker-compose.btc-ltc.yml index a1f501c..808f71a 100644 --- a/Production/docker-compose.btc-ltc.yml +++ b/Production/docker-compose.btc-ltc.yml @@ -119,6 +119,7 @@ services: - "bitcoin_datadir:/data" postgres: + restart: always image: postgres:9.6.5 volumes: - "postgres_datadir:/var/lib/postgresql/data" diff --git a/Production/docker-compose.btc.yml b/Production/docker-compose.btc.yml index de3a79d..44d2d75 100644 --- a/Production/docker-compose.btc.yml +++ b/Production/docker-compose.btc.yml @@ -113,6 +113,7 @@ services: - "bitcoin_datadir:/data" postgres: + restart: always image: postgres:9.6.5 volumes: - "postgres_datadir:/var/lib/postgresql/data" diff --git a/Production/docker-compose.yml b/Production/docker-compose.yml index de3a79d..44d2d75 100644 --- a/Production/docker-compose.yml +++ b/Production/docker-compose.yml @@ -113,6 +113,7 @@ services: - "bitcoin_datadir:/data" postgres: + restart: always image: postgres:9.6.5 volumes: - "postgres_datadir:/var/lib/postgresql/data"