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 +