Skip to content

Instantly share code, notes, and snippets.

@muratcorlu
Created March 10, 2022 20:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save muratcorlu/2dd17f06c75a2514408a7f9bb8bea83b to your computer and use it in GitHub Desktop.
Save muratcorlu/2dd17f06c75a2514408a7f9bb8bea83b to your computer and use it in GitHub Desktop.
Running self-hosting mail server with Poste.io and docker-compose
version: '3'
services:
mailserver:
image: analogic/poste.io
container_name: mailserver
restart: unless-stopped
network_mode: "host"
ports:
- "25:25"
- "80:80"
- "110:110"
- "143:143"
- "465:465"
- "587:587"
- "993:993"
- "995:995"
- "4190:4190"
environment:
- LETSENCRYPT_EMAIL=admin@example.com
- LETSENCRYPT_HOST=mail.example.com
- VIRTUAL_HOST=mail.example.com
volumes:
- /etc/localtime:/etc/localtime:ro
- /mnt/poste:/da
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment