mirror of
https://github.com/thib8956/nginx-proxy
synced 2025-02-23 17:28:14 +00:00
17 lines
382 B
YAML
17 lines
382 B
YAML
services:
|
|
nginx-proxy:
|
|
image: nginxproxy/nginx-proxy
|
|
container_name: nginx-proxy
|
|
ports:
|
|
- "80:80"
|
|
volumes:
|
|
- /var/run/docker.sock:/tmp/docker.sock:ro
|
|
|
|
# if you want to proxy based on host ports, you'll want to use the host network
|
|
# network_mode: "host"
|
|
|
|
whoami:
|
|
image: jwilder/whoami
|
|
environment:
|
|
- VIRTUAL_HOST=whoami.example
|