version: '3.9'
services:
nginx-proxy:
image: jwilder/nginx-proxy
ports:
- 80:80
volumes:
- /var/run/docker.sock:/tmp/docker.sock:ro
network_mode: bridge
php:
image: php:7.4.3-apache
expose:
- 80
environment:
VIRTUAL_HOST: test.localhost
volumes:
- ./:/var/www/html
network_mode: bridge
...