Restart apprise, audiobookshelf and dawarich after reboots
apprise and audiobookshelf had no restart policy, and the dawarich app and sidekiq used on-failure. Docker stops containers cleanly on a reboot or daemon upgrade, so none of them came back on their own. Use unless-stopped like the other services. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -1,6 +1,7 @@
|
|||||||
services:
|
services:
|
||||||
apprise:
|
apprise:
|
||||||
container_name: apprise
|
container_name: apprise
|
||||||
|
restart: unless-stopped
|
||||||
ports:
|
ports:
|
||||||
- {{ network.docker_host_ip }}:8000:8000
|
- {{ network.docker_host_ip }}:8000:8000
|
||||||
environment:
|
environment:
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
services:
|
services:
|
||||||
audiobookshelf:
|
audiobookshelf:
|
||||||
image: ghcr.io/advplyr/audiobookshelf:latest
|
image: ghcr.io/advplyr/audiobookshelf:latest
|
||||||
|
restart: unless-stopped
|
||||||
volumes:
|
volumes:
|
||||||
- audiobooks:/audiobooks
|
- audiobooks:/audiobooks
|
||||||
- podcasts:/podcasts
|
- podcasts:/podcasts
|
||||||
|
|||||||
@@ -52,7 +52,7 @@ services:
|
|||||||
tty: true
|
tty: true
|
||||||
entrypoint: web-entrypoint.sh
|
entrypoint: web-entrypoint.sh
|
||||||
command: ['bin/rails', 'server', '-p', '3000', '-b', '::']
|
command: ['bin/rails', 'server', '-p', '3000', '-b', '::']
|
||||||
restart: on-failure
|
restart: unless-stopped
|
||||||
environment:
|
environment:
|
||||||
RAILS_ENV: production
|
RAILS_ENV: production
|
||||||
DATABASE_HOST: dawarich_db
|
DATABASE_HOST: dawarich_db
|
||||||
@@ -111,7 +111,7 @@ services:
|
|||||||
tty: true
|
tty: true
|
||||||
entrypoint: sidekiq-entrypoint.sh
|
entrypoint: sidekiq-entrypoint.sh
|
||||||
command: ['sidekiq']
|
command: ['sidekiq']
|
||||||
restart: on-failure
|
restart: unless-stopped
|
||||||
environment:
|
environment:
|
||||||
RAILS_ENV: production
|
RAILS_ENV: production
|
||||||
DATABASE_HOST: dawarich_db
|
DATABASE_HOST: dawarich_db
|
||||||
|
|||||||
Reference in New Issue
Block a user