mirror of
https://github.com/wallabag/docker.git
synced 2025-12-22 11:48:04 +01: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:
@ -112,6 +112,7 @@ version: '3'
|
|||||||
services:
|
services:
|
||||||
wallabag:
|
wallabag:
|
||||||
image: wallabag/wallabag
|
image: wallabag/wallabag
|
||||||
|
restart: unless-stopped
|
||||||
environment:
|
environment:
|
||||||
- MYSQL_ROOT_PASSWORD=wallaroot
|
- MYSQL_ROOT_PASSWORD=wallaroot
|
||||||
- SYMFONY__ENV__DATABASE_DRIVER=pdo_mysql
|
- SYMFONY__ENV__DATABASE_DRIVER=pdo_mysql
|
||||||
@ -139,6 +140,7 @@ services:
|
|||||||
- redis
|
- redis
|
||||||
db:
|
db:
|
||||||
image: mariadb
|
image: mariadb
|
||||||
|
restart: unless-stopped
|
||||||
environment:
|
environment:
|
||||||
- MYSQL_ROOT_PASSWORD=wallaroot
|
- MYSQL_ROOT_PASSWORD=wallaroot
|
||||||
volumes:
|
volumes:
|
||||||
@ -149,6 +151,7 @@ services:
|
|||||||
timeout: 3s
|
timeout: 3s
|
||||||
redis:
|
redis:
|
||||||
image: redis:alpine
|
image: redis:alpine
|
||||||
|
restart: unless-stopped
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: ["CMD", "redis-cli", "ping"]
|
test: ["CMD", "redis-cli", "ping"]
|
||||||
interval: 20s
|
interval: 20s
|
||||||
|
|||||||
Reference in New Issue
Block a user