I've used a AIO + traefik docker setup once, but I might be a little bit rusty, it's been some time. Docs state that labels do not work with the AIO, due to the fact that mastercontainer manages the containers. With the AIO it is better to not get in the way of the mastercontainer - if any issues occur you have a non-standard deployment and need to consider that while troubleshooting. Not the most elegant solution, but you could run vanilla AIO with traefik external routing via exposed apache port on the node IP using the file provider. If you don't have one you'll need to adjust the traefik config file to include:
providers:
file:
filename: #dynamic config file path goes here, example: /etc/traefik/fileConfig.yml
watch: true
Create such file and restart traefik container.
You can use this file to provide all sorts of configs, traefik constantly checks it and makes adjustments. Here's an example:
http:
## EXTERNAL ROUTING ##
routers:
nextcloud:
rule: "Host(`nextcloud.example.com`)"
entrypoints:
- "https"
service: nextcloud
middlewares:
tls:
certresolver: "letsencrypt"
## SERVICES ##
services:
nextcloud:
loadBalancer:
servers:
- url: "http://IP:PORT of the apache container"
You may route internally if traefik runs on the host network. Check the link to the github documentation above for more info. Consider adjusting for a trusted proxy by limiting access to the apache container as described there.