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:
@@ -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 \
|
||||
|
||||
Reference in New Issue
Block a user