mirror of
https://github.com/furyhawk/cloudy.git
synced 2026-05-23 08:25:57 +00:00
fix: update Traefik volume configuration to use dedicated certificate storage
This commit is contained in:
+8
-2
@@ -105,8 +105,8 @@ services:
|
|||||||
volumes:
|
volumes:
|
||||||
# Add Docker as a mounted volume, so that Traefik can read the labels of other 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
|
- /var/run/docker.sock:/var/run/docker.sock:ro
|
||||||
# Mount ACME storage file from host
|
# Mount the volume to store the certificates
|
||||||
- /var/data/config/traefik/acme.json:/certificates/acme.json
|
- traefik-public-certificates:/certificates
|
||||||
# Mount the configuration file for Traefik
|
# Mount the configuration file for Traefik
|
||||||
- /var/data/config/traefik/services.yml:/etc/traefik/services.yml:ro
|
- /var/data/config/traefik/services.yml:/etc/traefik/services.yml:ro
|
||||||
command:
|
command:
|
||||||
@@ -193,6 +193,12 @@ services:
|
|||||||
constraints:
|
constraints:
|
||||||
- node.role==manager
|
- node.role==manager
|
||||||
|
|
||||||
|
volumes:
|
||||||
|
# Create a volume to store the certificates, there is a constraint to make sure
|
||||||
|
# Traefik is always deployed to the same Docker node with the same volume containing
|
||||||
|
# the HTTPS certificates
|
||||||
|
traefik-public-certificates:
|
||||||
|
|
||||||
networks:
|
networks:
|
||||||
# Use the previously created public network "traefik-public", shared with other
|
# Use the previously created public network "traefik-public", shared with other
|
||||||
# services that need to be publicly available via this Traefik
|
# services that need to be publicly available via this Traefik
|
||||||
|
|||||||
Reference in New Issue
Block a user