# nextxch v1.3.0 - Minimal Production Docker Compose Stack (SQLite WAL Zero-Config)
# Start: docker compose up -d
# Admin Cockpit: https://<server-ip>/admin/  (initial password in ./nextxch-data/initial-admin-credentials.txt)
# Webmail PWA:   https://<server-ip>/mail/

services:
  nextxch:
    image: nextxch/server:1.3.0
    container_name: nextxch
    restart: unless-stopped
    ports:
      - "25:25"     # ESMTP Inbound (MX)
      - "465:465"   # SMTPS (Implicit TLS)
      - "587:587"   # Submission (STARTTLS)
      - "993:993"   # IMAPS (IMAP4rev2)
      - "4190:4190" # ManageSieve
      - "80:80"     # HTTP & Let's Encrypt ACME HTTP-01
      - "443:443"   # HTTPS: Webmail (/mail/), Admin (/admin/), JMAP, CalDAV/CardDAV, ActiveSync/EWS/MAPI
    volumes:
      - ./nextxch-data:/app/data
