Specific installation with apache already running

Hi there!
I’m used to do with Nextcloud for years for team work. I’ve installed Dolibarr too and I’ve got errors often in this one due to php version.
I wanted to try Nextcloud on Docker (with its own php version).
But my configuration is a little bit specific: my server is under another server!
When I want to reach “mydomain.com”, the request is sent to the other server. With Traefik, it’s sent to my server on port 80.
On my server, Apache is listenning this port.
I tried many things (send directly the request to the NC container, through another Traefik installed on my server on a container)… It doesn’t work.
I tried to install a php server on Docker and through Traefik, I can reach it, but nothing to do with NC.
Before see my config (that is not good), is there someone who could help me?
I’m not used of Docker, so it would be great if I could know if that I’m trying to do is possible, for the beginning!

Thank you!

I’d suggest you could think about changing the request forwarding with traffik to an regular reverse proxy, after that you could run your nc normaly in a docker env.

Thank you!
I’m not sure I understand very well what you think!

I won’t be surprised it should be a problem of ports…
In Apache I have this:

ProxyPreserveHost On
ProxyRequests On
ProxyPass / http://XXX.XX.X.X:8082/ #local ip of Traefik container
ProxyPassReverse / http://XXX.XX.X.X:8082/ #local ip of Traefik container

In my docker-compose.yml for traefik:

ports:
      - 8082:80
      - 8086:8080
      - 8043:443

(because Apache is already listenning ports 80 and 443)

This worked for my php container, but I can’t reach NC container like this. Here what I had in my php container:

labels:
      - "traefik.enable=true"
      - "traefik.http.routers.php.rule=(Host(`test.mydomain.com`))"