Haraka-Wildduck Docker Mail Server with NodeJS
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

78 lines
1.6 KiB

version: '3'
services:
wildduck:
build:
context: ./wildduck
args:
DOMAIN: $DOMAIN
REVERSE_DNS: $REVERSE_DNS
hostname: wildduck
container_name: wildduck
restart: always
entrypoint:
- /bin/bash
- /entrypoint.sh
ports:
- "25:25/tcp"
- "465:465/tcp"
- "993:993/tcp"
expose:
- 80
- 12080
volumes:
- ./entrypoint.sh:/entrypoint.sh:ro
- ./secure:/secure:ro
- ./wildduck/haraka/attachments:/home/node/Haraka/attachments
depends_on:
- redis
- mongo
networks:
mailnet:
redis:
image: redis
hostname: redis
container_name: redis
restart: always
# volumes:
# - ./redis:/data
expose:
- 6379
networks:
mailnet:
mongo:
image: mongo
hostname: mongo
container_name: mongo
restart: always
# volumes:
# - ./mongodb:/data/db
expose:
- 27017
networks:
mailnet:
webmail:
build:
context: ./webmail
args:
DOMAIN: $DOMAIN
hostname: webmail
container_name: webmail
restart: always
entrypoint:
- node
- server.js
- --config=/webmail/config/default.toml
ports:
- "3000:3000/tcp"
depends_on:
- redis
- mongo
- wildduck
networks:
mailnet:
networks:
mailnet: