Files
mailgoserver/docker-compose.yml
T

33 lines
781 B
YAML

services:
mailserver-aio:
build:
context: ..
dockerfile: Dockerfile.aio
container_name: mailgoserver
hostname: mailgoserver
restart: unless-stopped
networks:
backend:
ports:
- "${SMTP_PORT:-25}:25"
- "${SMTP_TLS_PORT:-465}:465"
- "${IMAP_PORT:-143}:143"
- "${IMAP_TLS_PORT:-993}:993"
- "${ACME_HTTP_PORT:-80}:80"
- "${WEB_HTTP_PORT:-5000}:5000"
- "${WEB_HTTPS_PORT:-5001}:5001"
volumes:
- mailserver-aio-data:/app/server_data
volumes:
mailserver-aio-data:
driver: local
driver_opts:
o: bind
type: none
device: /opt/settings/mailgoserver/data
# This is external network what I use, you can use your own or remove it.
networks:
backend:
external: true