Extends jwilder's nginx-proxy with some additional features.
1.8K
Extends jwilder's nginx-proxy with some additional features.
For basic configuration you should look at jwilder/nginx-proxy
When COLLECT_LOGS is set to true, access logs for each container will collected in /var/log/nginx-vhosts/.
To change the env key witch is used for private containers set VIRTUAL_PRIVATE_ENV_KEY to a different value.
nginx-proxy:
build: extended-nginx-proxy
container_name: nginx-proxy
ports:
- "127.0.0.1:80:80"
volumes:
- /var/run/docker.sock:/tmp/docker.sock:ro
- ./volumes/conf.d/:/etc/nginx/conf.d/
- ./volumes/vhost.d/:/etc/nginx/vhost.d
- ./volumes/logs:/var/log/nginx-vhosts
- ./volumes/htpasswd:/etc/nginx/htpasswd
environment:
- COLLECT_LOGS=true
- VIRTUAL_PRIVATE_ENV_KEY=VIRTUAL_PRIVATE
To increase the client_max_body_size you could set VIRTUAL_BIGBODY to true.
This will will set client_max_body_size to 1G.
To set the increased client_max_body_size to a diffrent value than 1G you could use VIRTUAL_BIGBODY_SIZE.
To restrict the access to a container to certain ip's, set VIRTUAL_PRIVATE to true.
If VIRTUAL_PRIVATE is set to true /etc/nginx/vhost.d/default_private and /etc/nginx/vhost.d/<hostname>_private
will be included if the exist.
whoami:
image: jwilder/whoami
container_name: whoami
environment:
- VIRTUAL_BIGBODY=true
- VIRTUAL_BIGBODY_SIZE=10G
- VIRTUAL_PRIVATE=true
Content type
Image
Digest
Size
54.7 MB
Last updated
over 7 years ago
docker pull r1co/extended-nginx-proxy