1
0
mirror of https://github.com/wallabag/docker synced 2025-12-13 01:36:28 +00:00

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
This commit is contained in:
Neil McKenzie
2024-02-01 08:53:52 +11:00
committed by GitHub
parent f59fb4b67a
commit 7c9d8a37e0

View File

@@ -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