I’ve used both Nginx and Traefik, and Traefik wins for Docker setups. The auto-config is *chef’s kiss*.
For security, you’ll want to pair it with Let’s Encrypt. Here’s a snippet for HTTPS:
```yaml
command:
- --entrypoints.web.address=:80
- --entrypoints.websecure.address=:443
- --certificatesresolvers.myresolver.acme.httpchallenge=true
- --certificatesresolvers.myresolver.acme.httpchallenge.entrypoint=web
```
Docs: https://doc.traefik.io/traefik/
For security, you’ll want to pair it with Let’s Encrypt. Here’s a snippet for HTTPS:
```yaml
command:
- --entrypoints.web.address=:80
- --entrypoints.websecure.address=:443
- --certificatesresolvers.myresolver.acme.httpchallenge=true
- --certificatesresolvers.myresolver.acme.httpchallenge.entrypoint=web
```
Docs: https://doc.traefik.io/traefik/
