chore: Remove `domainname` field from example compose (#3230)

Co-authored-by: Georg Lauterbach <44545919+georglauterbach@users.noreply.github.com>
This commit is contained in:
Brennan Kinney 2023-04-08 22:01:46 +12:00 committed by GitHub
parent cf8e555212
commit 0c0f55f4e8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 6 deletions

View File

@ -2,10 +2,8 @@ services:
mailserver: mailserver:
image: docker.io/mailserver/docker-mailserver:latest image: docker.io/mailserver/docker-mailserver:latest
container_name: mailserver container_name: mailserver
# If the FQDN for your mail-server is only two labels (eg: example.com), # Provide the FQDN of your mail server here (Your DNS MX record should point to this value)
# you can assign this entirely to `hostname` and remove `domainname`. hostname: mail.example.com
hostname: mail
domainname: example.com
env_file: mailserver.env env_file: mailserver.env
# More information about the mail-server ports: # More information about the mail-server ports:
# https://docker-mailserver.github.io/docker-mailserver/latest/config/security/understanding-the-ports/ # https://docker-mailserver.github.io/docker-mailserver/latest/config/security/understanding-the-ports/
@ -24,8 +22,9 @@ services:
- /etc/localtime:/etc/localtime:ro - /etc/localtime:/etc/localtime:ro
restart: always restart: always
stop_grace_period: 1m stop_grace_period: 1m
cap_add: # Uncomment if using `ENABLE_FAIL2BAN=1`:
- NET_ADMIN # cap_add:
# - NET_ADMIN
healthcheck: healthcheck:
test: "ss --listening --tcp | grep -P 'LISTEN.+:smtp' || exit 1" test: "ss --listening --tcp | grep -P 'LISTEN.+:smtp' || exit 1"
timeout: 3s timeout: 3s