Bonjour,
Personne n'a une idée ?
Bonjour,
Personne n'a une idée ?
Merci pour le retour, du coup est ce que tu peux me poster ton vhost?
Mon docker-compose.yml est en tout point identique à celui proposé par @Hardware sur son git
version: '2'
services:
mailserver:
image: hardware/mailserver
container_name: mailserver
domainname: domain.tld # Mail server FQDN & reverse = mail.domain.tld.
hostname: mail
# restart: always
# extra_hosts: - Required for external database (on other server or for local database on host)
# - "mariadb:xx.xx.xx.xx" - Replace with IP address of MariaDB server
ports:
- "25:25" # SMTP - Required
# - "110:110" # POP3 STARTTLS - Optional - For webmails/desktop clients
- "143:143" # IMAP STARTTLS - Optional - For webmails/desktop clients
# - "465:465" # SMTPS SSL/TLS - Optional - Enabled for compatibility reason, otherwise disabled
- "587:587" # Submission STARTTLS - Optional - For webmails/desktop clients
- "993:993" # IMAPS SSL/TLS - Optional - For webmails/desktop clients
# - "995:995" # POP3S SSL/TLS - Optional - For webmails/desktop clients
- "4190:4190" # SIEVE STARTTLS - Optional - Recommended for mail filtering
environment:
- DBPASS=xxxxxxx
# - ENABLE_POP3=true # Enable POP3 protocol
# - GREYLISTING=gross # Enable gross greylisting policy server
# - DISABLE_CLAMAV=true # Disable virus scanning
# - DISABLE_SPAMASSASSIN=true # Disable SPAM checking
# - DISABLE_SIEVE=true # Disable ManageSieve protocol
volumes:
- /mnt/docker/mail:/var/mail
- /mnt/docker/mail/opendkim:/etc/opendkim/keys
# - /mnt/docker/nginx/certs:/etc/letsencrypt
depends_on:
- mariadb
# Administration interface
# https://github.com/hardware/postfixadmin
# http://postfixadmin.sourceforge.net/
# Configuration : https://github.com/hardware/mailserver/wiki/Postfixadmin-initial-configuration
postfixadmin:
image: hardware/postfixadmin
container_name: postfixadmin
domainname: domain.tld
hostname: mail
# restart: always
environment:
- DBPASS=xxxxxxx
depends_on:
- mailserver
- mariadb
# Webmail (Optional)
# https://github.com/hardware/rainloop
# https://www.rainloop.net/
# Configuration : https://github.com/hardware/mailserver/wiki/Rainloop-initial-configuration
rainloop:
image: hardware/rainloop
container_name: rainloop
# restart: always
volumes:
- /mnt/docker/rainloop:/rainloop/data
depends_on:
- mailserver
- mariadb
# Web server
# https://github.com/Wonderfall/dockerfiles/tree/master/nginx
# https://nginx.org/
# Configuration : https://github.com/hardware/mailserver/wiki/Reverse-proxy-configuration
nginx:
image: wonderfall/boring-nginx
container_name: nginx
# restart: always
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
depends_on:
- postfixadmin
- rainloop
# Database
# https://github.com/docker-library/mariadb
# https://mariadb.org/
mariadb:
image: mariadb:10.1
container_name: mariadb
# restart: always
# Info : These variables are ignored when the volume already exists (databases created before).
environment:
- MYSQL_ROOT_PASSWORD=xxxxxxx
- MYSQL_DATABASE=postfix
- MYSQL_USER=postfix
- MYSQL_PASSWORD=xxxxxxx
volumes:
- /mnt/docker/mysql/db:/var/lib/MySQL
@laster13 Voilà le docker compose qu'il te faudra :
https://paste.mondedie.fr/?53d2e17248a1493e#CTyUF0pgrtxPUAzfUYx6sqqIX7SZZcJFMWVMR2hSCSg=
Autrement niveau nginx, il te suffira de créer des proxy_pass vers 127.0.0.1:8888 et 8889.
Super que tout fonctionne maintenant !!! Désolé, j'ai eu un imprévu hier et je n'ai pas pu me connecter de la journée.
Il faut effectivement exposer un port sur localhost pour qu'Nginx soit le seul à y avoir accès
bonjour je remonte cette ancien post
car je suis dans le même cas installation en dure de nginx ( pour gérez site web et rutorrent )
auriez vous un docker-compose qui permet de faire cela sans le boring qui n'est plus d'actualité sur le dockerhub.
cordialement