diff --git a/docker-compose.yml b/docker-compose.yml index d54d295..64bd492 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,30 +1,50 @@ -services: - mailserver: - image: ghcr.io/docker-mailserver/docker-mailserver:latest - container_name: mailserver - # Provide the FQDN of your mail server here (Your DNS MX record should point to this value) - hostname: mail.example.com - env_file: mailserver.env - # More information about the mail-server ports: - # https://docker-mailserver.github.io/docker-mailserver/latest/config/security/understanding-the-ports/ - ports: - - "25:25" # SMTP (explicit TLS => STARTTLS, Authentication is DISABLED => use port 465/587 instead) - - "143:143" # IMAP4 (explicit TLS => STARTTLS) - - "465:465" # ESMTP (implicit TLS) - - "587:587" # ESMTP (explicit TLS => STARTTLS) - - "993:993" # IMAP4 (implicit TLS) - volumes: - - ./docker-data/dms/mail-data/:/var/mail/ - - ./docker-data/dms/mail-state/:/var/mail-state/ - - ./docker-data/dms/mail-logs/:/var/log/mail/ - - ./docker-data/dms/config/:/tmp/docker-mailserver/ - - /etc/localtime:/etc/localtime:ro - restart: always - stop_grace_period: 1m - # Uncomment if using `ENABLE_FAIL2BAN=1`: - # cap_add: - # - NET_ADMIN - healthcheck: - test: "ss --listening --ipv4 --tcp | grep --silent ':smtp' || exit 1" - timeout: 3s - retries: 0 +services: + mailserver: + image: ghcr.io/docker-mailserver/docker-mailserver:latest + container_name: mailserver + # Provide the FQDN of your mail server here (Your DNS MX record should point to this value) + hostname: mail.example.com + env_file: mailserver.env + # More information about the mail-server ports: + # https://docker-mailserver.github.io/docker-mailserver/latest/config/security/understanding-the-ports/ + ports: + - "25:25" # SMTP (explicit TLS => STARTTLS, Authentication is DISABLED => use port 465/587 instead) + - "143:143" # IMAP4 (explicit TLS => STARTTLS) + - "465:465" # ESMTP (implicit TLS) + - "587:587" # ESMTP (explicit TLS => STARTTLS) + - "993:993" # IMAP4 (implicit TLS) + volumes: + - ./docker-data/dms/mail-data/:/var/mail/ + - ./docker-data/dms/mail-state/:/var/mail-state/ + - ./docker-data/dms/mail-logs/:/var/log/mail/ + - ./docker-data/dms/config/:/tmp/docker-mailserver/ + - /etc/localtime:/etc/localtime:ro + restart: always + stop_grace_period: 1m + # Uncomment if using `ENABLE_FAIL2BAN=1`: + # cap_add: + # - NET_ADMIN + healthcheck: + test: "ss --listening --ipv4 --tcp | grep --silent ':smtp' || exit 1" + timeout: 3s + retries: 0 + + mssql: + image: mcr.microsoft.com/mssql/server:2022-latest + container_name: mssql-server + hostname: mssql-server + restart: unless-stopped + + environment: + ACCEPT_EULA: "Y" + MSSQL_SA_PASSWORD: "YourStrongPassword123!" + MSSQL_PID: "Developer" + + ports: + - "1433:1433" + + volumes: + - mssql_data:/var/opt/mssql + +volumes: + mssql_data: \ No newline at end of file