- Reorganized Ansible project structure to follow best practices. - Created dedicated directories: , , , , and . - Categorized playbooks into (host-specific) and (service-specific). - Moved all roles into the directory and standardized their naming conventions. - Relocated to for better variable management. - Renamed to to reflect its global variable scope. - Created to correctly set the to the new directory. - Moved and into the directory. - Added to providing explanations for common commands. - Cleaned up directories from all individual roles to centralize version control.
34 lines
1.4 KiB
YAML
34 lines
1.4 KiB
YAML
---
|
|
- name: email
|
|
community.docker.docker_container:
|
|
image: docker.io/mailserver/docker-mailserver:latest
|
|
name: email
|
|
#container_name: mailserver
|
|
# If the FQDN for your mail-server is only two labels (eg: example.com),
|
|
# you can assign this entirely to `hostname` and remove `domainname`.
|
|
hostname: mail
|
|
domainname: katebartova.cz
|
|
env:
|
|
SSL_TYPE: letsencrypt
|
|
env_file: "{{ docker_homepath }}/mailserver.env"
|
|
# More information about the mail-server ports:
|
|
# https://docker-mailserver.github.io/docker-mailserver/edge/config/security/understanding-the-ports/
|
|
# To avoid conflicts with yaml base-60 float, DO NOT remove the quotation marks.
|
|
ports:
|
|
- "25:25" # SMTP (explicit TLS => STARTTLS)
|
|
- "143:143" # IMAP4 (explicit TLS => STARTTLS)
|
|
- "465:465" # ESMTP (implicit TLS)
|
|
- "587:587" # ESMTP (explicit TLS => STARTTLS)
|
|
- "993:993" # IMAP4 (implicit TLS)
|
|
volumes:
|
|
- "{{ docker_homepath }}/docker-data/dms/mail-data/:/var/mail/"
|
|
- "{{ docker_homepath }}/docker-data/dms/mail-state/:/var/mail-state/"
|
|
- "{{ docker_homepath }}/docker-data/dms/mail-logs/:/var/log/mail/"
|
|
- "{{ docker_homepath }}/docker-data/dms/config/:/tmp/docker-mailserver/"
|
|
- "/bigpool/nginx/letsencrypt/:/etc/letsencrypt/:ro"
|
|
- /etc/localtime:/etc/localtime:ro
|
|
restart_policy: always
|
|
#stop_grace_period: 1m
|
|
capabilities:
|
|
- NET_ADMIN
|
|
- SYS_PTRACE |