无需使用内部MySQL,指定外部数据源!!!
借鉴地址:https://hub.docker.com/r/bestwu/ewomail
Dockerfile编译地址:https://github.com/moses-keqi/ewomail
version: '3.7'
services:
mail:
# image: bestwu/ewomail:latest
image: moese/ewomail:1.0.1
hostname: mail.learning.com
container_name: learning
restart: always
platform: linux/x86_64
environment:
- "MYSQL_ROOT_PASSWORD=123"
- "MYSQL_MAIL_PASSWORD=123"
- "MAIL_DB_HOST=mysql"
- "MAIL_DB_ROOT_USERNAME=root"
ports:
- "25:25"
- "143:143"
- "587:587"
- "993:993"
- "109:109"
- "110:110"
- "465:465"
- "995:995"
- "9095:80"
- "9096:8080"
volumes:
- "./ewomail/data/vmail:/ewomail/mail"
- "./ewomail/data/rainloop:/ewomail/www/rainloop/data"
- "./ewomail/data/ssl/certs/:/etc/ssl/certs/"
- "./ewomail/data/ssl/private/:/etc/ssl/private/"
- "./ewomail/data/ssl/dkim/:/ewomail/dkim/"
networks:
application:
aliases:
- mail
networks:
application:
name: commons
driver: bridge
FROM bestwu/ewomail:latest
#RUN rm -rf /etc/dovecot/dovecot-sql.conf.ext /etc/postfix/main.cf /etc/postfix/mysql
#COPY ./config/dovecot/dovecot-sql.conf.ext /etc/dovecot/dovecot-sql.conf.ext
#COPY ./config/postfix/mysql /etc/postfix/mysql
COPY ./config/postfix/main.cf /etc/postfix/main.cf
RUN rm -rf /home/*
COPY ./config/php/* /home/
RUN chmod +x /home/*
# docker build -t moese/ewomail:1.0.1 .
ENTRYPOINT ["/home/entrypoint.sh"]
Content type
Image
Digest
sha256:669e45911…
Size
543.7 MB
Last updated
over 2 years ago
docker pull moese/ewomail:1.0.1