With jwilder nginx-proxy, how to proxypass a subdirectory url to a specific container?
I use jwilder/nginx-proxy to make a reverse proxy. I try to redirect http://localhost:8000/api to a specific php service. The directory structure: . +-- docker-compose.yml +-- nginx +-- nodejs | +-- index.js | +-- … +-- php | +-- api docker-compose.yml: version: "3.1" services: nginx-proxy: image: jwilder/nginx-proxy:alpine ports: - "8000:80" volumes: - ./php:/srv/www - /var/run/docker.sock:/tmp/docker.sock:ro nodejs: image: node:alpine environment: - NODE_ENV=production - VIRTUAL_HOST=localhost - VIRTUAL_PORT=8080 expose: - "8080" working_dir: /home/app restart: always volumes: - ./nodejs: