Compare commits

..

3 commits

3 changed files with 4 additions and 3 deletions

View file

@ -1,6 +1,6 @@
#!/usr/bin/python3 #!/usr/bin/python3
import os, sys, re, shutil import os, sys, re, shutil, time
import filecmp import filecmp
from glob import glob from glob import glob
from mako.template import Template from mako.template import Template
@ -343,6 +343,7 @@ def upProj(project):
if runPodman("pod", ["exists", f"pod_{project}"]).returncode == 0: if runPodman("pod", ["exists", f"pod_{project}"]).returncode == 0:
print(f"Tearing down stack for project {project}.") print(f"Tearing down stack for project {project}.")
runPodman("compose", ["-f", f"projects/{project}/compose.yaml.rendered", "down"]) runPodman("compose", ["-f", f"projects/{project}/compose.yaml.rendered", "down"])
time.sleep(0.25) # Give time to pasta to unbind port
print(f"Creating & starting stack for project {project}.") print(f"Creating & starting stack for project {project}.")
runPodman("compose", ["-f", f"projects/{project}/compose.yaml.rendered", "up", "-d"]) runPodman("compose", ["-f", f"projects/{project}/compose.yaml.rendered", "up", "-d"])

View file

@ -1,7 +1,7 @@
services: services:
mailserver: mailserver:
container_name: mailserver container_name: mailserver
image: docker.io/stalwartlabs/mail-server:v0.10.2 image: docker.io/stalwartlabs/mail-server:v0.10.5
network_mode: pasta:-a,${env['pasta']['mailserver']['ipv4']},-a,${env['pasta']['mailserver']['ipv6']} network_mode: pasta:-a,${env['pasta']['mailserver']['ipv4']},-a,${env['pasta']['mailserver']['ipv6']}
restart: always restart: always
user: "${env['users']['mailserver']}:${env['users']['mailserver']}" user: "${env['users']['mailserver']}:${env['users']['mailserver']}"

View file

@ -17,7 +17,7 @@ services:
discosrv: discosrv:
container_name: syncthing-discosrv container_name: syncthing-discosrv
image: docker.io/syncthing/discosrv:1 image: docker.io/syncthing/discosrv:1.27
network_mode: pasta network_mode: pasta
restart: always restart: always
command: command: