|
@@ -9,10 +9,14 @@ services:
|
|
- "80:80"
|
|
- "80:80"
|
|
volumes:
|
|
volumes:
|
|
- nginx_conf:/etc/nginx/conf.d:ro
|
|
- nginx_conf:/etc/nginx/conf.d:ro
|
|
|
|
+ - network_internal.conf:/etc/nginx/network_internal.conf:ro
|
|
|
|
|
|
dockergen:
|
|
dockergen:
|
|
image: nginxproxy/docker-gen
|
|
image: nginxproxy/docker-gen
|
|
command: -notify-sighup nginx -watch /etc/docker-gen/templates/nginx.tmpl /etc/nginx/conf.d/default.conf
|
|
command: -notify-sighup nginx -watch /etc/docker-gen/templates/nginx.tmpl /etc/nginx/conf.d/default.conf
|
|
|
|
+ # the name "nginx" passed to the "-notify-sighup" flag must exactly match the container name used for the nginx container above.
|
|
|
|
+ environment:
|
|
|
|
+ # nginx-proxy environment variable (HTTP_PORT etc.) must be set on the docker-gen container (not the nginx container)
|
|
volumes:
|
|
volumes:
|
|
- /var/run/docker.sock:/tmp/docker.sock:ro
|
|
- /var/run/docker.sock:/tmp/docker.sock:ro
|
|
- ./nginx.tmpl:/etc/docker-gen/templates/nginx.tmpl
|
|
- ./nginx.tmpl:/etc/docker-gen/templates/nginx.tmpl
|