christianlempa-boilerplates/docker-compose/traefik/README.md

41 lines
1.1 KiB
Markdown
Raw Normal View History

2021-12-30 11:58:26 +01:00
# Installation
2021-12-30 11:46:21 +01:00
2022-01-11 09:37:46 +01:00
TODO: #21 Improve traefik docu
2021-12-30 11:46:21 +01:00
## Data Persistence
... Storing Data in the `/etc/traefik` directory on the host, passing through...
```yaml
volumes:
- /etc/traefik:/etc/traefik
```
## Self-Signed Certificates
According to traefik's documentation it will automatically generate self-signed Certificates if no Default Certificate is provided. If you'd like to overwrite the self-signed Certificate with your own, uncomment the section for
```yaml
# (Optional) Overwrite Default Certificates
tls:
stores:
default:
defaultCertificate:
certFile: /etc/traefik/certs/cert.pem
keyFile: /etc/traefik/certs/cert-key.pem
```
Replace the `/etc/traefik/certs/cert.pem` with your certificate file, and the `/etc/traefik/certs/cert-key.pem` with your certificate key.
2021-12-30 11:58:26 +01:00
# Best-Practices & Post-Installation
2021-12-30 11:46:21 +01:00
## MinTLS Version
TLS 1.0 and 1.1 are not longer secure! Consider disabling it in the Traefik Configuration.
2021-12-30 11:46:21 +01:00
```yaml
providers:
docker:
exposedByDefault: false # Default is true
file:
# watch for dynamic configuration changes
directory: /etc/traefik
watch: true
```