services: change restart policy to unless-stopped

when we stop an app, the service containers are stopped. they
start running again on reboot.

correct restart policy is "unless-stopped" for all the containers.
This commit is contained in:
Girish Ramakrishnan
2025-06-14 17:51:35 +02:00
parent c44926c2cd
commit d924f73ceb
4 changed files with 9 additions and 9 deletions

View File

@@ -175,7 +175,7 @@ async function configureMail(mailFqdn, mailDomain, serviceConfig) {
const cmd = serviceConfig.recoveryMode ? '/bin/bash -c \'echo "Debug mode. Sleeping" && sleep infinity\'' : '';
const logLevel = serviceConfig.recoveryMode ? 'data' : 'info';
const runCmd = `docker run --restart=always -d --name=mail \
const runCmd = `docker run --restart=unless-stopped -d --name=mail \
--net cloudron \
--net-alias mail \
--log-driver syslog \