Docker Rookie Portaefik Traefik Dashboard Error 404

Hi please be patient with me, I making my first steps with Docker. As well I am not a crack on Linux command etc.
I did follow this website (GitHub - r9r-dev/portaefik: portainer + traefik + docker in a nutshell => where re docker-compose.yml are coming from https://gist.github.com/marcelo-ochoa/ff426a7cf571bb6d23bef2b2561aff16the only change was made by the network. changed to traefik) to bring up docker, portainer and traefik.
Portainer is just working as expected. Traefik I am not able to access the dashboard. Error 404 page not found. Traefik container logs are showing below error.
I am not sure if these errors are coming from the fact that I do have following folder structure:

/portaefik
               /letsencrypt
               /portainer-data
               /users.u

and file docker-compose.yml
and in the folder /portainer-data I do have the file users.u

is that correct? Or my guess, do I need to delete the folder users.u and afterward copy the file users.u to the portaefik folder?

THX for any support
Cheers mame

2023-11-11T13:21:42Z ERR error="accept tcp [::]:443: use of closed network connection" entryPointName=websecure

2023-11-11T13:21:42Z ERR Error while starting server error="accept tcp [::]:443: use of closed network connection" entryPointName=websecure

2023-11-11T13:21:42Z ERR error="accept tcp [::]:80: use of closed network connection" entryPointName=web

2023-11-11T13:21:42Z ERR Error while starting server error="accept tcp [::]:80: use of closed network connection" entryPointName=web

2023-11-11T13:22:10Z ERR error="read /users/users.u: is a directory" entryPointName=websecure routerName=dashboard@docker

2023-11-11T13:22:20Z ERR error="read /users/users.u: is a directory" entryPointName=websecure routerName=dashboard@docker

2023-11-11T13:22:29Z ERR error="read /users/users.u: is a directory" entryPointName=websecure routerName=dashboard@docker

Gist does not work.

"Use of closed network connection" is usually just happening during container shutdown.

Maybe compare to simple Traefik example.

Hi bluepuma77
thanks for your reply. Just to be 100% save,
Do I need to edit my docker-compose.yml ONLY on the section TRAEFIK and keep the entries from portainer?
See picture of my docker-compose.yml file
THX mame

I made some "changes" where I have added the file users.u in the folder users.u.
After a restart of container traefik I got error message "failure network error" as well my logs show this:

2023-11-12T09:45:07.706242439Z 2023-11-12T09:45:07Z ERR error="accept tcp [::]:80: use of closed network connection" entryPointName=web
2
2023-11-12T09:45:07.706282340Z 2023-11-12T09:45:07Z ERR error="accept tcp [::]:443: use of closed network connection" entryPointName=websecure
3
2023-11-12T09:45:07.706297840Z 2023-11-12T09:45:07Z ERR error="close tcp [::]:80: use of closed network connection" entryPointName=web
4
2023-11-12T09:45:19.804433335Z 2023-11-12T09:45:19Z ERR error="read /users/users.u: is a directory" entryPointName=websecure routerName=dashboard@docker
5
2023-11-12T09:52:04.352389404Z 2023-11-12T09:52:04Z ERR error="accept tcp [::]:80: use of closed network connection" entryPointName=web
6
2023-11-12T09:52:04.352556911Z 2023-11-12T09:52:04Z ERR Error while starting server error="accept tcp [::]:80: use of closed network connection" entryPointName=web
7
2023-11-12T09:52:04.352581112Z 2023-11-12T09:52:04Z ERR error="accept tcp [::]:443: use of closed network connection" entryPointName=websecure
8
2023-11-12T09:52:04.352595112Z 2023-11-12T09:52:04Z ERR Error while starting server error="accept tcp [::]:443: use of closed network connection" entryPointName=websecure
9
2023-11-12T09:52:15.887839574Z 2023-11-12T09:52:15Z ERR error="read /users/users.u: is a directory" entryPointName=websecure routerName=dashboard@docker

Seems like a problem with your bind mount.

Go into the container and check it:
docker exec -it traefik sh

Hmmmm....right now the newbie do not get your comment ...sorry

ssh connect to the linux machine gives me follwoing output:

mame@proxy:~/portaefik/users.u$ docker exec -it traefik sh
permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Get "http://%2Fvar%2Fr               un%2Fdocker.sock/v1.24/containers/traefik/json": dial unix /var/run/docker.sock: connect: permission denied
mame@proxy:~/portaefik/users.u$ sudo docker exec -it traefik sh
[sudo] password for mame:
/ #

console from traefik container do not show any result => see screenshot

traefik