Добавлена конфигурация для почты

This commit is contained in:
2025-07-15 16:09:36 +02:00
parent 18d2237b34
commit 643c772de7
8 changed files with 83 additions and 0 deletions

40
docker-compose.yml Normal file
View File

@@ -0,0 +1,40 @@
version: '3.3'
services:
postfix:
image: docker.dended.ru/postfix:latest
container_name: postfix
restart: always
volumes:
- ./postfix/main.cf:/etc/postfix/main.cf
- ./postfix/master.cf:/etc/postfix/master.cf
- ./postfix/virtual:/etc/postfix/virtual
- /usb1/mail-data:/var/mail
environment:
- POSTFIX_myhostname=mail.dended.ru
ports:
- "25:25"
- "587:587"
networks:
- mail-network
dovecot:
image: docker.dended.ru/dovecot:latest
container_name: dovecot
restart: always
volumes:
- ./dovecot/dovecot.conf:/etc/dovecot/dovecot.conf
- ./dovecot/conf.d/:/etc/dovecot/conf.d/
- ./ssl/:/etc/ssl/dovecot/
- ./mail-data:/var/mail
- ./dovecot/users:/etc/dovecot/users
ports:
- "143:143"
- "993:993"
networks:
- mail-network
networks:
mail-network:
driver: bridge