Is it possible to route subfolders to different containers?
For example http://localhost/wordpress
would load Wordpress and http://localhost/drupal
would load, well, Drupal.
I know I could get away with using subdomain. But here, it's for a testing environment where creating subdomain every time may be a waste of time
EDIT: docker-compose.yml
after the first answer
version: '3'
services:
reverse-proxy:
image: traefik:2.0
command: --api.insecure=true --providers.docker
ports:
- "80:80"
- "8080:8080"
volumes:
- /var/run/docker.sock:/var/run/docker.sock
wordpress:
image: wordpress
labels:
- "traefik.http.routers.whoami.rule=Host(`localhost`) && Path(`/wordpress`)"
drupal:
image: drupal
labels:
- "traefik.http.routers.whoami.rule=Host(`localhost`) && Path(`/drupal`)"