Migrate mailserver to Podman
This commit is contained in:
parent
c3f82875be
commit
1fbe3ceb24
2 changed files with 23 additions and 0 deletions
18
projects/mailserver/compose.yaml.mako
Normal file
18
projects/mailserver/compose.yaml.mako
Normal file
|
@ -0,0 +1,18 @@
|
|||
services:
|
||||
mailserver:
|
||||
container_name: mailserver
|
||||
image: docker.io/stalwartlabs/mail-server:v0.10.2
|
||||
network_mode: pasta:-a,${env['pasta']['mailserver']['ipv4']},-a,${env['pasta']['mailserver']['ipv6']}
|
||||
restart: always
|
||||
user: "${env['users']['mailserver']}:${env['users']['mailserver']}"
|
||||
cap_add:
|
||||
- NET_BIND_SERVICE
|
||||
ports:
|
||||
- "${env['ports']['mailserver_smtp']}:25"
|
||||
- ${env['ports']['mailserver_smtps']}:465
|
||||
- ${env['ports']['mailserver_imaps']}:993
|
||||
- ${env['ports']['mailserver_https']}:443
|
||||
volumes:
|
||||
- ${env['certs']['mailserver']['cert']}:/etc/fullchain.pem:ro
|
||||
- ${env['certs']['mailserver']['pkey']}:/etc/privkey.pem:ro
|
||||
- ${env['volumes']['mailserver']['datadir']}:/opt/stalwart-mail
|
|
@ -25,6 +25,8 @@ backup:
|
|||
- /mnt/etebasedata/media
|
||||
hedgedoc:
|
||||
- /mnt/hedgedocuploads
|
||||
mailserver:
|
||||
- /mnt/mailserver/etc/config.toml
|
||||
synapse:
|
||||
- /mnt/synapsedata
|
||||
vaultwarden:
|
||||
|
@ -58,6 +60,9 @@ pasta:
|
|||
hedgedoc:
|
||||
ipv4: 10.86.8.1
|
||||
ipv6: fc86::8
|
||||
mailserver:
|
||||
ipv4: 10.86.13.1
|
||||
ipv6: fc86::13
|
||||
synapse:
|
||||
ipv4: 10.86.19.1
|
||||
ipv6: fc86::19
|
||||
|
|
Loading…
Reference in a new issue