From 7c9d8a37e04f179552f5849eb4ae49935c0a9247 Mon Sep 17 00:00:00 2001 From: Neil McKenzie Date: Thu, 1 Feb 2024 08:53:52 +1100 Subject: [PATCH] Add restart: unless-stopped to example docker-compose Most example docker-compose files include restart: unless-stopped or restart: always. This being absent on Wallabag's example leads to unexpected downtime upon server restart --- README.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/README.md b/README.md index b021438..97a0568 100644 --- a/README.md +++ b/README.md @@ -112,6 +112,7 @@ version: '3' services: wallabag: image: wallabag/wallabag + restart: unless-stopped environment: - MYSQL_ROOT_PASSWORD=wallaroot - SYMFONY__ENV__DATABASE_DRIVER=pdo_mysql @@ -139,6 +140,7 @@ services: - redis db: image: mariadb + restart: unless-stopped environment: - MYSQL_ROOT_PASSWORD=wallaroot volumes: @@ -149,6 +151,7 @@ services: timeout: 3s redis: image: redis:alpine + restart: unless-stopped healthcheck: test: ["CMD", "redis-cli", "ping"] interval: 20s