version: '3'
|
|
services:
|
|
wildduck:
|
|
build: ./wildduck
|
|
hostname: wildduck
|
|
container_name: wildduck
|
|
restart: always
|
|
environment:
|
|
- DOMAIN=domain.com
|
|
- REVERSE_DNS=com.domain
|
|
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.com
|
|
hostname: webmail
|
|
container_name: webmail
|
|
restart: always
|
|
entrypoint:
|
|
- node
|
|
- server.js
|
|
- --config=/webmail/config/default.toml
|
|
expose:
|
|
- 3000
|
|
depends_on:
|
|
- redis
|
|
- mongo
|
|
- wildduck
|
|
networks:
|
|
mailnet:
|
|
|
|
networks:
|
|
mailnet:
|