Help for domainelibre/yunohost3 docker container image

Hi,
I’m trying to use Yunohost as dockerized image. I found domainelibre/yunohost3 image. It runs as expected without traefik reverse proxy. I can’t run it behind reverse proxy. I wonder is there any one successfully use Yunohost this fashion?
May be here is not correct place to ask this question, sory for inconvenience.
Thanks.

You won’t get much help if you do not provide details on what you did exactly and why it doesn’t work …

Hi Aleks,
Thanks for your attention.
I invoke container with ‘docker run -d -h yunohost.xxxx.yyy --name=yunohost --privileged --restart unless-stopped -p 2022:22 -p 8090:80 -p 8443:443 -p 5222:5222 -p 5269:5269 -v /media:/media -v /sys/fs/cgroup:/sys/fs/cgroup:ro -v /var/run/docker.sock:/var/run/docker.sock domainelibre/yunohost3 /bin/systemd’ command. Ports 80 and 443 are using by Traefik.
Yunohost docker-compose file as follows;

version: '3.7'
services:
  yunohost:
    image: domainelibre/yunohost3:latest
    container_name: yunohost
    restart: unless-stopped
    security_opt:
      - no-new-privileges:true
    networks:
      - t2_proxy
    ports:
      - "2022:22"
      - "8443:443"
      - "5222:5222"
      - "5269:5269"
      - "8090:80"
    volumes:
      - /etc/localtime:/etc/localtime:ro
      - /var/run/docker.sock:/var/run/docker.sock:ro
      - /media:/media
      - /sys/fs/cgroup:/sys/fs/cgroup:ro
    labels:
- "traefik.enable=true"
      ## Routers
      - "traefik.tcp.routers.yunohost-secure.entrypoints=https"
      - "traefik.tcp.routers.yunohost-secure.rule=Host(`test1.xxxxx.yyy`)"
      - "traefik.tcp.routers.yunohost-secure.tls=true"
      - "traefik.tcp.routers.yunohost-secure.tls.certresolver=le"
      - "traefik.tcp.routers.yunohost-secure.tls.passthrough=true"
      - "traefik.tcp.routers.yunohost-secure.service=yunohost"
      - "traefik.tcp.services.yunohost.loadbalancer.server.port=8443"
      - "traefik.tcp.services.yunohost.loadbalancer.passhostheader=true"
networks:
  t2_proxy:
    external: true

Traefik log says ‘level=error msg=“field not found, node: passhostheader” providerName=docker container=yunohost-yunohost’ and invoking test1.xxxx.yyy on browser causes ‘404 page not found’ error. Let’sencrypt runs.
Normally similar setup for Tomcat runs as expected.

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.