Добавлена конфигурация для почты
This commit is contained in:
40
docker-compose.yml
Normal file
40
docker-compose.yml
Normal 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
|
||||
|
||||
Reference in New Issue
Block a user