version: '3.8'

services:
  plesk:
    image: plesk/plesk:latest
    container_name: plesk-test
    hostname: plesk.local
    ports:
      - "8443:8443"   # Plesk Panel (HTTPS)
      - "8880:8880"   # Plesk Panel (HTTP)
      - "25:25"       # SMTP
      - "465:465"     # SMTPS
      - "587:587"     # Submission
      - "143:143"     # IMAP
      - "993:993"     # IMAPS
      - "110:110"     # POP3
      - "995:995"     # POP3S
    volumes:
      # Plesk speichert Daten an mehreren Orten
      - psa-data:/var/lib/psa          # Hauptdaten (Domains, Konfiguration)
      - psa-etc:/etc/psa               # Plesk-Konfiguration
      - mysql-data:/var/lib/mysql      # Datenbank
      - vhosts:/var/www/vhosts         # Webseiten/Domains
      - mail:/var/mail                 # Mailboxen
      - postfix:/var/spool/postfix     # Mail-Queue
    restart: unless-stopped
    privileged: true

volumes:
  psa-data:
  psa-etc:
  mysql-data:
  vhosts:
  mail:
  postfix:

# Nach dem Start: ./setup-domain.sh ausführen
