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

@@ -101,7 +101,7 @@ async function start(existingInfra) {
const cmd = serviceConfig.recoveryMode ? '/bin/bash -c \'echo "Debug mode. Sleeping" && sleep infinity\'' : '';
const volumeMounts = dataDirs.map(v => `-v "${v.hostDir}:${v.mountDir}"`).join(' ');
const runCmd = `docker run --restart=always -d --name=sftp \
const runCmd = `docker run --restart=unless-stopped -d --name=sftp \
--hostname sftp \
--net cloudron \
--net-alias sftp \