<commit_before>mailserver:
  image: hardware/mailserver
  container_name: mailserver
  domainname: domain.tld
  hostname: mail
  links:
    - mariadb:mariadb
  ports:
    - "25:25"     # SMTP                - Required
    - "143:143"   # IMAP       STARTTLS - For webmails/desktop clients
    - "465:465"   # SMTPS      SSL/TLS  - Enabled for compatibility reason, otherwise disabled
    - "587:587"   # Submission STARTTLS - For webmails/desktop clients
    - "993:993"   # IMAPS      SSL/TLS  - For webmails/desktop clients
    - "4190:4190" # SIEVE      STARTTLS - Optional, but recommended for mail filtering
  environment:
    - DBPASS=xxxxxxx
  volumes:
    - /mnt/docker/mail:/var/mail
    - /mnt/docker/opendkim:/etc/opendkim/keys

# Control panel
postfixadmin:
  image: hardware/postfixadmin
  container_name: postfixadmin
  domainname: domain.tld
  hostname: mail
  links:
    - mariadb:mariadb
  environment:
    - DBPASS=xxxxxxx

# Webmail
rainloop:
  image: hardware/rainloop
  container_name: rainloop
  links:
    - mailserver:mailserver
    - mariadb:mariadb
  volumes:
    - /mnt/docker/rainloop:/rainloop/data

# Web server
nginx:
  image: wonderfall/nginx
  container_name: nginx
  links:
    - postfixadmin:postfixadmin
    - rainloop:rainloop
  ports:
    - "80:8000"
    - "443:4430"
  volumes:
    - /mnt/docker/nginx/sites-enabled:/sites-enabled
    - /mnt/docker/nginx/conf:/conf.d
    - /mnt/docker/nginx/log:/var/log/nginx
    - /mnt/docker/nginx/certs:/certs

# Database
mariadb:
  image: mariadb:10.1
  container_name: mariadb
  environment:
    - MYSQL_ROOT_PASSWORD=<PASSWORD>
    - MYSQL_DATABASE=postfix
    - MYSQL_USER=postfix
    - MYSQL_PASSWORD=<PASSWORD>
  volumes:
    - /mnt/docker/mysql/db:/var/lib/mysql
<commit_msg>docs(): add link between mailserver & postfixadmin<commit_after>mailserver:
  image: hardware/mailserver
  container_name: mailserver
  domainname: domain.tld
  hostname: mail
  links:
    - mariadb:mariadb
  ports:
    - "25:25"     # SMTP                - Required
    - "143:143"   # IMAP       STARTTLS - For webmails/desktop clients
    - "465:465"   # SMTPS      SSL/TLS  - Enabled for compatibility reason, otherwise disabled
    - "587:587"   # Submission STARTTLS - For webmails/desktop clients
    - "993:993"   # IMAPS      SSL/TLS  - For webmails/desktop clients
    - "4190:4190" # SIEVE      STARTTLS - Optional, but recommended for mail filtering
  environment:
    - DBPASS=xxxxxxx
  volumes:
    - /mnt/docker/mail:/var/mail
    - /mnt/docker/opendkim:/etc/opendkim/keys

# Control panel
postfixadmin:
  image: hardware/postfixadmin
  container_name: postfixadmin
  domainname: domain.tld
  hostname: mail
  links:
    - mailserver:mailserver
    - mariadb:mariadb
  environment:
    - DBPASS=xxxxxxx

# Webmail
rainloop:
  image: hardware/rainloop
  container_name: rainloop
  links:
    - mailserver:mailserver
    - mariadb:mariadb
  volumes:
    - /mnt/docker/rainloop:/rainloop/data

# Web server
nginx:
  image: wonderfall/nginx
  container_name: nginx
  links:
    - postfixadmin:postfixadmin
    - rainloop:rainloop
  ports:
    - "80:8000"
    - "443:4430"
  volumes:
    - /mnt/docker/nginx/sites-enabled:/sites-enabled
    - /mnt/docker/nginx/conf:/conf.d
    - /mnt/docker/nginx/log:/var/log/nginx
    - /mnt/docker/nginx/certs:/certs

# Database
mariadb:
  image: mariadb:10.1
  container_name: mariadb
  environment:
    - MYSQL_ROOT_PASSWORD=<PASSWORD>
    - MYSQL_DATABASE=postfix
    - MYSQL_USER=postfix
    - MYSQL_PASSWORD=<PASSWORD>
  volumes:
    - /mnt/docker/mysql/db:/var/lib/mysql

{'fraction_non_alphanumeric': 0.10773095171643873, 'fraction_numerical': 0.029025955902874687, 'mean_word_length': 2.7489539748953975, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 4, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7188304', 'n_tokens_mistral': 1433, 'n_tokens_neox': 1328, 'n_words': 232}