Run Spider as Docker container
On Docker host machine:
-
Pull the official image from Docker Hub:
docker pull iredmail/spider:nightly
-
Create directory
/spider
to store data (you're free to use a different directory), also generate a random string as secret key (used to encrypt archived email messages and attachments):mkdir /spider cd /spider LC_CTYPE=C tr -dc [:alnum:] </dev/urandom | head -c 64 > secret.key chmod 0400 secret.key
WARNING: Keep this secret key file safe.
If you lose this secret key file, then all archived email messages and attachments are impossible to recover.
-
If you have a purchased ssl cert, please copy the cert and private key files to:
/spider/cert.pem
: the cert file/spider/key.pem
: the private key
Spider works without ssl cert, but this is not recommended since your SMTP and http connections are insecure.
-
Launch the container:
docker run -d -p 25:25 -p 8080:8080 -v /spider:/opt/spider iredmail/spider:nightly
It exposes port
25
for smtp service and8080
for web console by default, you're free to change them with the-p
argument.