2017-02-11 22:42:24 +01:00
|
|
|
services:
|
|
|
|
nginx:
|
|
|
|
image: nginx
|
|
|
|
container_name: nginx
|
|
|
|
volumes:
|
2024-12-18 02:08:46 +01:00
|
|
|
- nginx_conf:/etc/nginx/conf.d:ro
|
2017-02-11 22:42:24 +01:00
|
|
|
|
|
|
|
dockergen:
|
2022-01-11 19:55:29 +01:00
|
|
|
image: nginxproxy/docker-gen
|
2017-02-11 22:42:24 +01:00
|
|
|
command: -notify-sighup nginx -watch /etc/docker-gen/templates/nginx.tmpl /etc/nginx/conf.d/default.conf
|
|
|
|
volumes:
|
|
|
|
- /var/run/docker.sock:/tmp/docker.sock:ro
|
2023-01-17 00:02:02 -05:00
|
|
|
- ../../nginx.tmpl:/etc/docker-gen/templates/nginx.tmpl
|
2017-02-11 22:42:24 +01:00
|
|
|
- nginx_conf:/etc/nginx/conf.d
|
|
|
|
|
2017-02-17 01:09:53 +01:00
|
|
|
web:
|
|
|
|
image: web
|
2017-02-11 22:42:24 +01:00
|
|
|
container_name: whoami
|
2017-02-17 01:09:53 +01:00
|
|
|
expose:
|
|
|
|
- "80"
|
2017-02-11 22:42:24 +01:00
|
|
|
environment:
|
2017-02-17 01:09:53 +01:00
|
|
|
WEB_PORTS: 80
|
|
|
|
VIRTUAL_HOST: whoami.nginx.container.docker
|
2017-02-11 22:42:24 +01:00
|
|
|
|
|
|
|
volumes:
|
2024-12-18 02:08:46 +01:00
|
|
|
nginx_conf:
|