You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is a strongly opinionated AnonAddy Docker + Traefik config template that provides *some* production quality features.
2
+
**Note** that you must further tweak the configuration and then run Docker in Swarm mode to ensure e.g. encrypted network traffic and scaling for *serious* production usage.
3
+
You should also use something like Hashicorp Vault to protect any secrets as Docker secret files are still stored in plain text on the filesystem as well as disable root user access in containers.
4
+
5
+
## Features
6
+
- Automatic creation of ACME SSL Wildcard Certificates using DNS Challenge resolver
7
+
-[Tecnativa's Docker Socket Proxy](https://github.com/Tecnativa/docker-socket-proxy) (reduce risk of Docker socket exposure)
8
+
- Automatic Postfix TLS management using [traefik-certs-dumper](https://github.com/kereis/traefik-certs-dumper)
9
+
- Auto-dumping of Let's Encrypt certificates to Postfix cert directory
10
+
- Watch & restart AnonAddy container on certificate renewal
11
+
- Hardened TLS cipher configuration
12
+
-[Watchtower](https://github.com/containrrr/watchtower) for automatic AnonAddy container updates upon new release
13
+
- CrowdSec with Traefik bouncer for SPAM detection and mitigation. Please refer to the
14
+
[CrowdSec documentation](https://docs.crowdsec.net/docs/getting_started/install_crowdsec) for initial setup instructions.
15
+
- Enabled Rspamd and exposed Web UI (also covered by CrowdSec bouncer) at [https://**spam**.example.com](https://spam.example.com)
16
+
17
+
**Note**: This configuration does not ensure true Zero Downtime re-deploys!
18
+
19
+
## Usage
20
+
21
+
Make sure you have followed the steps described [here](https://github.com/anonaddy/docker#generate-dkim-privatepublic-keypair) to generate a DKIM keypair.
22
+
Use these files for full SMTP(D) TLS/ DKIM/ DMARC/ PGP signing functionalities.
23
+
24
+
```bash
25
+
mkdir letsencrypt
26
+
touch letsencrypt/acme.json
27
+
chmod 600 letsencrypt/acme.json
28
+
docker-compose up -d
29
+
docker-compose logs -f
30
+
```
31
+
32
+
You will also need to create secret files containing the DNS Challenge provider credentials. For more information, please refer to the [Traefik Docs](https://doc.traefik.io/traefik/https/acme/#providers).
0 commit comments