SMTP-to-Apprise notification gateway.
Educational example only. Review every volume path, port, and credential before you run this. Do not copy production secrets into your wiki or git repo.
_shared/.env for non-secrets, _shared/.secret for credentialsmkdir -p /path/to/docker/stacks/mailrise
cd /path/to/docker/stacks/mailrise
# paste compose.yaml below, then:
docker compose pull
docker compose up -d
---
services:
mailrise:
image: yoryan/mailrise:latest
container_name: mailrise
hostname: mailrise
env_file:
- /path/to/docker/stacks/_shared/.env
- /path/to/docker/stacks/_shared/.secret
logging:
driver: json-file
options:
max-file: ${DOCKERLOGGING_MAXFILE:-10} # Max number of log files
max-size: ${DOCKERLOGGING_MAXSIZE:-200k} # Max file size
volumes:
# Mount the local mailrise.conf file to the required path inside the container
- /path/to/docker/data/mailrise/mailrise.conf:/etc/mailrise.conf
ports:
- 8025:8025 # Maps host port 8025 to container port 8025
restart: unless-stopped
_shared/.secret.