Advertisement
Brentano

Docker compose for mailpiler (Unraid)

Jun 2nd, 2025 (edited)
21
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Go 2.95 KB | None | 0 0
  1. services:
  2.  
  3. # Datenbank:
  4.   db:
  5.     image: mariadb:11.6.2
  6.     container_name: mailpiler-db
  7.     hostname: db
  8.     restart: unless-stopped
  9.     environment:
  10.       - MYSQL_DATABASE=piler
  11.       - MYSQL_USER=pileruser
  12.       - MYSQL_PASSWORD=pilerpass
  13.       - MYSQL_ROOT_PASSWORD=pilerroot
  14.     command: --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci
  15.     volumes:
  16.       - /mnt/user/appdata/mailpiler/db:/var/lib/mysql
  17.       - /mnt/user/appdata/mailpiler/piler.cnf:/etc/mysql/conf.d/piler.cnf:ro
  18.     labels:
  19.       net.unraid.docker.icon: 'https://web.archive.org/web/20240807065709if_/https://spintopventures.com/wp-content/uploads/2015/03/[email protected]'
  20.     networks:
  21.       mailpiler:
  22.         ipv4_address: "172.16.90.2"
  23.  
  24. # Search-Engine:
  25.   manticore:
  26.     image: manticoresearch/manticore:6.3.8
  27.     container_name: mailpiler-manticore
  28.     hostname: manticore
  29.     restart: unless-stopped
  30.     volumes:
  31.       - /mnt/user/appdata/mailpiler/manticore.conf:/etc/manticoresearch/manticore.conf
  32.       - /mnt/user/appdata/mailpiler/manticore:/var/lib/manticore
  33.     labels:
  34.       net.unraid.docker.icon: 'https://web.archive.org/web/20250424192816if_/https://avatars.githubusercontent.com/u/28798446?v=4'
  35.     networks:
  36.       mailpiler:
  37.         ipv4_address: "172.16.90.3"
  38.  
  39. # Mail-Piler:
  40.   piler:
  41.     image: sutoj/piler:1.4.7
  42.     container_name: mailpiler
  43.     init: true
  44.     environment:
  45.       - MANTICORE_HOSTNAME=manticore
  46.       - MEMCACHED_HOSTNAME=memcached
  47.       - MYSQL_HOSTNAME=db
  48.       - MYSQL_DATABASE=piler
  49.       - MYSQL_USER=pileruser
  50.       - MYSQL_PASSWORD=pilerpass
  51.       - MYSQL_ROOT_PASSWORD=pilerroot
  52.       - PILER_HOSTNAME=DEINE_IP:9277
  53.       - RT=1
  54.       - TIMEZONE=Europe/Berlin
  55.     ports:
  56.       - "9276:25"
  57.       - "9277:80"
  58.     volumes:
  59.       - /mnt/user/appdata/mailpiler/etc:/etc/piler
  60.       - /mnt/user/appdata/mailpiler/store:/var/piler/store
  61.     healthcheck:
  62.       test: curl -s smtp://localhost/
  63.       interval: "20s"
  64.       timeout: "3s"
  65.       start_period: "15s"
  66.       retries: 3
  67.     depends_on:
  68.       - "db"
  69.       - "memcached"
  70.       - "manticore"
  71.     labels:
  72.       net.unraid.docker.icon: 'https://web.archive.org/web/20250602101707if_/https://s7.ezgif.com/tmp/ezgif-7bbfcaaef6da94.png'
  73.       net.unraid.docker.webui: 'http://[IP]:[PORT:9277]/'
  74.       com.centurylinklabs.watchtower.enable: 'true'
  75.     networks:
  76.       mailpiler:
  77.         ipv4_address: "172.16.90.4"
  78.  
  79. # Cache:
  80.   memcached:
  81.     image: memcached:alpine
  82.     container_name: mailpiler-cache
  83.     hostname: memcached
  84.     command: -m 64
  85.     restart: unless-stopped
  86.     labels:
  87.       net.unraid.docker.icon: 'https://web.archive.org/web/20250602101834if_/https://s7.ezgif.com/tmp/ezgif-7b4f84a634a864.png'
  88.     networks:
  89.       mailpiler:
  90.         ipv4_address: "172.16.90.5"
  91.  
  92. # Netzwerk:
  93. networks:
  94.   mailpiler:
  95.     name: mailpiler
  96.     driver: bridge
  97.     ipam:
  98.       config:
  99.         - subnet: 172.16.90.0/24
  100.           gateway: 172.16.90.1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement