2024-12-18 02:08:46 +01:00
|
|
|
volumes:
|
|
|
|
nginx_conf:
|
2023-12-11 14:25:04 +01:00
|
|
|
|
2016-06-27 01:26:39 -04:00
|
|
|
services:
|
|
|
|
nginx:
|
|
|
|
image: nginx
|
|
|
|
container_name: nginx
|
|
|
|
ports:
|
|
|
|
- "80:80"
|
|
|
|
volumes:
|
2024-12-18 02:08:46 +01:00
|
|
|
- nginx_conf:/etc/nginx/conf.d:ro
|
2016-06-27 01:26:39 -04:00
|
|
|
|
|
|
|
dockergen:
|
2022-01-11 19:55:29 +01:00
|
|
|
image: nginxproxy/docker-gen
|
2024-12-18 02:08:46 +01:00
|
|
|
command: -notify-sighup nginx -watch /etc/docker-gen/templates/nginx.tmpl /etc/nginx/conf.d/default.conf
|
2016-06-27 01:26:39 -04:00
|
|
|
volumes:
|
|
|
|
- /var/run/docker.sock:/tmp/docker.sock:ro
|
|
|
|
- ./nginx.tmpl:/etc/docker-gen/templates/nginx.tmpl
|
2024-12-18 02:08:46 +01:00
|
|
|
- nginx_conf:/etc/nginx/conf.d
|
2016-06-27 01:26:39 -04:00
|
|
|
|
|
|
|
whoami:
|
|
|
|
image: jwilder/whoami
|
|
|
|
environment:
|
2023-05-22 12:14:28 +02:00
|
|
|
- VIRTUAL_HOST=whoami.example
|