Traefik + photoprim ( Docker compose ) + piwigo in other server locally running

Hello,
I'd like to hide 2 services behind traefix, but I did noch manage to understand the connfix mix of docker composte & traefix.yml

I have localy running behind my fritzbox:

  • a docker compose host running on W10
    Within docker

  • photoprism

  • traefik

  • VM running a webserver on port 80 with a piwigo installation.

My Goal is to access photoprism and Piwigo via the myfritz URL:
https://mediapc.iisecretsecret.myfritz.net/photo => Photoprism ( running in Docker )
https://mediapc.iisecretsecret.myfritz.net/piwigo => Piwigo ( running on different host )

I managed to acces photoprism as explained in their tutorial :frowning: Traefik - PhotoPrism ) this I would like to extend to acces my Piwigo also secured by Traefik.

This is my docker compose File:

version: '3.5'
services:
  traefik:
    image: traefik:v2.2
    restart: unless-stopped
    ports:
      - "80:80"
      - "443:443"
    volumes:
      - "./traefik.yaml:/etc/traefik/traefik.yaml"
      - "./traefik/data:/data"
      - "/var/run/docker.sock:/var/run/docker.sock"

  photoprism:
    image: photoprism/photoprism:latest 
    labels:
      - "traefik.http.routers.photoprism.rule=Host(`mediapc.iisecretsecret.myfritz.net`)"
      - "traefik.http.routers.photoprism.tls=true"
      - "traefik.http.routers.photoprism.tls.certresolver=myresolver"
    ports:
      - 2342:2342 # [local port]:[container port]
    environment:
.... photoprism config ...

additionaly have did tries within the traefik.yaml file as follows:

entryPoints:
  web:
    address: ":80"
    http:
      redirections:
        entryPoint:
          to: websecure
  websecure:
    address: ":443"


providers:
  file: "traefik.yaml"
  docker: {}

certificatesResolvers:
  myresolver:
    acme:
      email: luvstruck???@?????
      storage: /data/letsencrypt.json
      httpChallenge:
        entryPoint: web
        

http:
  routers:
    my-router:
      rule: "Path(`/piwigo`)"
      service: service-piwigo
  services:
    service-piwigo:
      loadBalancer:
        servers:
          - url: "http://mediaserverprd/piwigo/"

Thanks in advance for your time to help me out, guess this is simple if you know what you are doing...

Best Timo