Hi, i assumed it was something more complicated… I worked around it by useing local storage on the swarm-host and pinning the container via a label to that host. Whitch destroys all benefits of the swarm setup…
version: '3.7'
services:
basesite:
image: registry.[domain]:5000/checkmk/check-mk-enterprise:2.0.0p15
networks:
- traefik-public
- internal
environment:
CMK_SITE_ID: "cmk"
CMK_LIVESTATUS_TCP: "on"
CMK_PASSWORD: "initialpassword"
MAIL_RELAY_HOST: "[Mailhost]"
volumes:
- basesite_sites:/omd/sites
deploy:
placement:
constraints:
- node.labels.checkmk_basesite == true
labels:
- traefik.enable=true
- traefik.docker.network=traefik-public
- traefik.constraint-label=traefik-public
- traefik.http.routers.checkmk_basesite.rule=Host(`checkmk.[domain]`)
- traefik.http.routers.checkmk_basesite.entrypoints=websecure
- traefik.http.routers.checkmk_basesite.tls=true
- traefik.http.routers.checkmk_basesite.tls.options=default
- traefik.http.routers.checkmk_basesite.service=checkmk_basesite
- traefik.http.services.checkmk_basesite.loadbalancer.server.port=5000