-
-
Notifications
You must be signed in to change notification settings - Fork 270
Docker
To pull the latest pre-built image of wildduck from docker hub:
docker pull nodemailer/wildduck
It is also possible to pull a specific version of wildduck by specifying the version as the image tag. (example, for version 1.20):
docker pull nodemailer/wildduck:1.20
The following docker env variables are available inside the container:
-
WILDDUCK_APPDIR
: The folder where wildduck is installed inside the container -
WILDDUCK_CONFIG
: Path to the config file to be used with wildduck -
CMD_ARGS
: Any additional cmd options to pass to wildduck running inside the docker container
The image is configured to use the default config file
docker run nodemailer/wildduck
This is likely to fail due to mongodb
and redis
not present in localhost
inside the container. To pass custom configuration options/files to wildduck inside the docker image, the following two strategies can be used:
-
Pass
CMD_ARGS
to configure options using wild-configTo set a custom
mongo
andredis
host, and configure theFQDN
and the domain for receiving emails:FQDN='example.com' MAIL_DOMAIN='mail.example.com' docker run --env CMD_ARGS="\ --dbs.mongo=mongodb://mongo:27017/ \ --dbs.redis=redis://redis:6379/3" \ --smtp.setup.hostname=$FQN \ --log.gelf.hostname=$FQDN \ --imap.setup.hostname=$FQDN \ --emailDomain=$MAIL_DOMAIN nodemailer/wildduck
More details available at the wild-config documentation.
-
Mount a Docker volume with a custom configuration file:
To replace the default config folder (
/wildduck/config
) inside the docker imagedocker run -v '/config/from/host:/wildduck/config' nodemailer/wildduck
© 2015-2024 Andris Reinman. Wild Duck IMAP Server wildduck.email