From 1b77937d13fd47a653f47d53c7fa6cea227d3456 Mon Sep 17 00:00:00 2001 From: chandi Date: Sat, 2 May 2020 10:28:59 +0200 Subject: [PATCH] keep containers running, especially when they crash --- docker-compose.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/docker-compose.yml b/docker-compose.yml index 59dd1ed..0534adb 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -3,6 +3,7 @@ version: '3.6' services: core: build: mod/core + restart: unless-stopped depends_on: - redis cap_add: @@ -27,6 +28,7 @@ services: nginx: image: nginx:1.17 + restart: unless-stopped depends_on: - etherpad - webrtc-sfu @@ -44,6 +46,7 @@ services: etherpad: image: etherpad/etherpad:1.8.0 + restart: unless-stopped depends_on: - redis environment: @@ -58,6 +61,7 @@ services: redis: image: redis:5.0-alpine + restart: unless-stopped ports: - "127.0.0.1:6379:6379" # TODO: remove as soon as we updated all redis host references networks: @@ -72,6 +76,7 @@ services: kurento: image: kurento/kurento-media-server:6.13 + restart: unless-stopped environment: KMS_STUN_IP: ${STUN_IP} KMS_STUN_PORT: ${STUN_PORT} @@ -85,6 +90,7 @@ services: build: context: ./bbb-webrtc-sfu dockerfile: ../mod/webrtc-sfu/Dockerfile + restart: unless-stopped depends_on: - redis - kurento @@ -108,6 +114,7 @@ services: html5: build: mod/html5 + restart: unless-stopped depends_on: - redis - mongodb