From ad933f1763077828169d60478b4d00db4d0d0c67 Mon Sep 17 00:00:00 2001 From: didier Date: Mon, 2 Dec 2024 19:30:33 +0100 Subject: [PATCH] ajout snappymail --- config/dockers.tmpl.env | 2 ++ dockers/snappymail/docker-compose.yml | 32 +++++++++++++++++++++++++++ 2 files changed, 34 insertions(+) create mode 100644 dockers/snappymail/docker-compose.yml diff --git a/config/dockers.tmpl.env b/config/dockers.tmpl.env index 9a02522..0392625 100644 --- a/config/dockers.tmpl.env +++ b/config/dockers.tmpl.env @@ -94,6 +94,7 @@ traefikHost=dashboard imapsyncHost=imapsync castopodHost=pod apikazHost=apikaz +snappymailHost=snappymail ######################################## # ports internes @@ -129,6 +130,7 @@ vaultwardenServName=vaultwardenServ traefikServName=traefikServ prometheusServName=prometheusServ grafanaServName=grafanaServ +snappymailServName=snappymailServ ethercalcDBName=ethercalcDB etherpadDBName=etherpadDB framadateDBName=framadateDB diff --git a/dockers/snappymail/docker-compose.yml b/dockers/snappymail/docker-compose.yml new file mode 100644 index 0000000..774b9f9 --- /dev/null +++ b/dockers/snappymail/docker-compose.yml @@ -0,0 +1,32 @@ +services: + + snappymail: + image: ghcr.io/waldner/snappymail-docker:latest + container_name: ${snappymailServName} + hostname: ${snappymailHost} + restart: ${restartPolicy} + volumes: + - data:/snappymail/data + - snappymail:/snappymail/snappymail + networks: + snappymailNet: + postfixNet: + ports: + - 80 + env_file: + - ../../secret/env-${snappymailServName} + labels: + - "traefik.enable=true" + - "traefik.http.routers.${snappymailServName}.rule=host(`${snappymailHost}.${domain}`)" + - "traefik.docker.network=snappymailNet" +volumes: + data: + snappymail: +networks: + snappymailNet: + external: true + name: snappymailNet + postfixNet: + external: true + name: postfixNet +