Refactor Traefik configuration to use new certificate location and update volume mappings

This commit is contained in:
2024-06-13 13:48:13 +08:00
parent 57348087a6
commit 9a2e4be6af
2 changed files with 3 additions and 2 deletions
+1 -1
View File
@@ -89,7 +89,7 @@ services:
# Add Docker as a mounted volume, so that Traefik can read the labels of other services
- /var/run/docker.sock:/var/run/docker.sock:ro
# Mount the volume to store the certificates
- traefik-public-certificates:/certificates
- /var/data/config/acme.json:/certificates/acme.json
- /var/data/config/traefik/services.yml:/etc/traefik/services.yml:ro
command:
# Enable Docker in Traefik, so that it reads labels from Docker services
+2 -1
View File
@@ -6,7 +6,8 @@ services:
# - /var/data/docker-mailserver/maildata:/var/mail
# - /var/data/docker-mailserver/mailstate:/var/mail-state
# - /var/data/docker-mailserver/config:/tmp/docker-mailserver
- /var/data/docker-mailserver/letsencrypt:/etc/letsencrypt
- traefik-public-certificates:/certificates
- /var/data/config/acme.json:/etc/letsencrypt/acme.json:ro
ports:
- target: 25
published: 25