Skip to content

Commit

Permalink
Add restart: unless-stopped to example docker-compose
Browse files Browse the repository at this point in the history
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
  • Loading branch information
neilbags committed Jan 31, 2024
1 parent f59fb4b commit 7c9d8a3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -139,6 +140,7 @@ services:
- redis
db:
image: mariadb
restart: unless-stopped
environment:
- MYSQL_ROOT_PASSWORD=wallaroot
volumes:
Expand All @@ -149,6 +151,7 @@ services:
timeout: 3s
redis:
image: redis:alpine
restart: unless-stopped
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 20s
Expand Down

0 comments on commit 7c9d8a3

Please sign in to comment.