{"id":23381264,"url":"https://github.com/bvis/docker-varnish3","last_synced_at":"2026-05-06T00:37:06.300Z","repository":{"id":149012800,"uuid":"71156738","full_name":"bvis/docker-varnish3","owner":"bvis","description":"Provides Varnish 3.0.6 service with libmod-header integrated","archived":false,"fork":false,"pushed_at":"2018-08-31T10:33:12.000Z","size":2766,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-08T08:33:09.709Z","etag":null,"topics":["docker","docker-image","varnish","varnish3"],"latest_commit_sha":null,"homepage":"https://hub.docker.com/r/basi/varnish3/","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bvis.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-10-17T16:07:52.000Z","updated_at":"2018-08-31T10:32:38.000Z","dependencies_parsed_at":null,"dependency_job_id":"5cee8ce2-0a54-43c6-9845-2525d3ceb8e5","html_url":"https://github.com/bvis/docker-varnish3","commit_stats":null,"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"purl":"pkg:github/bvis/docker-varnish3","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bvis%2Fdocker-varnish3","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bvis%2Fdocker-varnish3/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bvis%2Fdocker-varnish3/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bvis%2Fdocker-varnish3/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bvis","download_url":"https://codeload.github.com/bvis/docker-varnish3/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bvis%2Fdocker-varnish3/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259290885,"owners_count":22835284,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["docker","docker-image","varnish","varnish3"],"created_at":"2024-12-21T20:48:38.008Z","updated_at":"2025-10-16T10:32:40.578Z","avatar_url":"https://github.com/bvis.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# basi/varnish3\nIt installs Varnish 3 using CentOS 6 as a host OS.\n\n### Varnish\nIt allows you to use an specific VCL file when you provide an environment variable named: `$VCL_CONFIG`. But\nyou can provide a directory instead of a file and the system internally will merge all the \"vcl\" files found in\nthe directory to create the VCL file that will be used by Varnish.\n\nThis approach is useful when you have complicated Varnish logic, and it allows to use small consul-template templates.\n\nAs the provided VCL is split in pieces you can overwrite each piece individually in your container or the entire\ndirectory.\n\n## Example of use\n\n### Provide a directory with the logic split in files\n\nYou can override in your image or container the provided template by something like this:\n\nYou can launch it as:\n\n    docker run --rm -it -P \\\n        -v $PWD/:/etc/varnish/conf.d/ \\\n        -e VCL_CONFIG=/etc/varnish/conf.d \\\n        basi/varnish3\n\nIt will use the VCL files contained in the volume instead of the originally available files provided by the image.\nIf you want to change one VCL status you just need to to it with:\n\n    docker run --rm -it -P \\\n        -v $PWD/rootfs/etc/varnish/conf.d/30-vcl_deliver.vcl:/etc/varnish/conf.d/30-vcl_deliver.vcl \\\n        -e VCL_CONFIG=/etc/varnish/conf.d \\\n        basi/varnish3\n\nAnd it will just switch just the logic executed in the vcl_deliver status by yours.\n\n### Usage for testing VCL logic\n\nIt has \"varnishtest\" tool integrated, then you can use it to test your VCL logic using it. For example:\n\n```\ndocker run --rm -it -P \\\n  -v $PWD/src:/etc/varnish/conf.d/ \\\n  -v $PWD/tests:/etc/varnish/tests/ \\\n  basi/varnish3 varnishtest -D include_path=/etc/varnish/conf.d /etc/varnish/tests/*.vtc  \n```\n\ndocker run -d -it -P --name varnish3 \\\n  -v $PWD/src:/etc/varnish/conf.d/ \\\n  -v $PWD/tests:/etc/varnish/tests/ \\\n  basi/varnish3 sleep 1000 \n\n### Other supported parameters:\n\n`$CACHE_SIZE`:      Determines the cache size used by varnish\n`$VARNISHD_PARAMS`: Other parameters you want to pass to the varnish daemon\n`$VARNISH_PARAM_*`: Any environment variable with this prefix can be used to substitute its value in a VCL with a placeholder with the same name.\n  For example if your VCL contains something like: `.host = \"#VARNISH_PARAM_SERVICE#\";` and you have an environment variable like `VARNISH_PARAM_SERVICE=my_svc`\n  you'll end up with `.host = \"my_svc\";`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbvis%2Fdocker-varnish3","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbvis%2Fdocker-varnish3","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbvis%2Fdocker-varnish3/lists"}