mirror of
https://github.com/Dokploy/templates.git
synced 2026-05-06 10:37:26 -05:00
[GH-ISSUE #792] Ghost immich app #2319
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @finnvyrn on GitHub (Apr 15, 2026).
Original GitHub issue: https://github.com/Dokploy/templates/issues/792
To Reproduce
Current vs. Expected behavior
Current: Immich's containers auto starts after host reboot, despite Dokploy shows Immich is not running.
Provide environment information
Which area(s) are affected? (Select all that apply)
Application
Are you deploying the applications where Dokploy is installed or on a remote server?
Same server where Dokploy is installed
Additional context
No response
Will you send a PR to fix it?
No
@dosubot[bot] commented on GitHub (Apr 15, 2026):
This happens because Dokploy uses
docker compose stopto stop compose applications [1], which only pauses containers without removing them or their restart policies. Since templates like Immich includerestart: alwaysorrestart: unless-stoppedin their compose files, Docker dutifully restarts those containers after a host reboot — even though Dokploy considers the app stopped.There's a related issue in Dokploy/dokploy#4019 about orphan containers persisting after compose redeployments due to the same underlying cause [2].
Workaround: After stopping the app in Dokploy, you can manually prevent the auto-restart by running:
Or use
docker compose -p <project-name> downdirectly to remove the containers entirely (they'll be recreated on next deploy).A proper fix would likely involve either switching the stop operation to use
docker compose down, or having Dokploy set--restart=noon containers when stopping an app.To reply, just mention @dosu.
How did I do? Good | Irrelevant | Incorrect | Verbose | Hallucination | Report 🐛 | Other

@finnvyrn commented on GitHub (Apr 15, 2026):
This is incorrect. Even after setting
restart: noto all containers, it still starts after the host boots.@dosubot[bot] commented on GitHub (Apr 15, 2026):
This is the same issue you reported over on Dokploy/dokploy#4227, so the root cause and fix live on the Dokploy side rather than in this templates repo.
That said, from the templates perspective: the Immich template sets
restart: alwayson all four services [1]. This is per the template conventions which requirerestart: unless-stoppedorrestart: always. When Dokploy stops a compose app it runsdocker compose stop, which only pauses containers without removing them or their restart policies [2]. So after a host reboot, Docker sees the stopped containers still carryingrestart: alwaysand brings them back up — regardless of what Dokploy's UI shows.Regarding your finding that
docker update --restart=nodidn't help either — that's likely because any subsequent Dokploy compose operation (redeploy, config change, etc.) re-reads the compose file and reappliesrestart: always, overwriting the manual change. There's also a related issue (#4019) where orphaned containers with old restart policies persist across redeployments [3].Workaround: Use
docker compose -p <project-name> downto fully remove the containers (they'll be recreated on next deploy). This is more reliable thandocker update --restart=nosince there are no containers left for Docker to restart.The proper fix needs to happen in Dokploy core — either by switching the stop operation to
docker compose down, or by having Dokploy set--restart=noon containers as part of its stop flow.To reply, just mention @dosu.
How did I do? Good | Irrelevant | Incorrect | Verbose | Hallucination | Report 🐛 | Other
