mirror of
https://github.com/funkypenguin/geek-cookbook/
synced 2025-12-15 18:56:24 +00:00
Update mail recipe for host-mode port exposure
This commit is contained in:
@@ -92,21 +92,34 @@ Create the necessary DNS TXT entries for your domain(s). Note that although open
|
|||||||
|
|
||||||
### Setup Docker Swarm
|
### Setup Docker Swarm
|
||||||
|
|
||||||
Create a docker swarm config file in docker-compose syntax (v3), something like this:
|
Create a docker swarm config file in docker-compose syntax (_v3.2 - because we need to expose mail ports in "host mode"_), something like this:
|
||||||
|
|
||||||
!!! tip
|
!!! tip
|
||||||
I share (_with my [patreon patrons](https://www.patreon.com/funkypenguin)_) a private "_premix_" git repository, which includes necessary docker-compose and env files for all published recipes. This means that patrons can launch any recipe with just a ```git pull``` and a ```docker stack deploy``` 👍
|
I share (_with my [patreon patrons](https://www.patreon.com/funkypenguin)_) a private "_premix_" git repository, which includes necessary docker-compose and env files for all published recipes. This means that patrons can launch any recipe with just a ```git pull``` and a ```docker stack deploy``` 👍
|
||||||
|
|
||||||
```
|
```
|
||||||
version: '3'
|
version: '3.2'
|
||||||
|
|
||||||
services:
|
services:
|
||||||
mail:
|
mail:
|
||||||
image: tvial/docker-mailserver:latest
|
image: tvial/docker-mailserver:latest
|
||||||
ports:
|
ports:
|
||||||
- "25:25"
|
- target: 25
|
||||||
- "587:587"
|
published: 25
|
||||||
- "993:993"
|
protocol: tcp
|
||||||
|
mode: host
|
||||||
|
- target: 587
|
||||||
|
published: 587
|
||||||
|
protocol: tcp
|
||||||
|
mode: host
|
||||||
|
- target: 993
|
||||||
|
published: 993
|
||||||
|
protocol: tcp
|
||||||
|
mode: host
|
||||||
|
- target: 995
|
||||||
|
published: 995
|
||||||
|
protocol: tcp
|
||||||
|
mode: host
|
||||||
volumes:
|
volumes:
|
||||||
- /var/data/docker-mailserver/maildata:/var/mail
|
- /var/data/docker-mailserver/maildata:/var/mail
|
||||||
- /var/data/docker-mailserver/mailstate:/var/mail-state
|
- /var/data/docker-mailserver/mailstate:/var/mail-state
|
||||||
|
|||||||
Reference in New Issue
Block a user