{"id":21518511,"url":"https://github.com/thijsferyn/varnishtraining","last_synced_at":"2025-04-09T22:04:52.951Z","repository":{"id":8766351,"uuid":"10450592","full_name":"ThijsFeryn/varnishtraining","owner":"ThijsFeryn","description":"Second iteration of my Varnish training. This version is specifically created for the Symfony Live Berlin 2017 workshop I've presented.","archived":false,"fork":false,"pushed_at":"2024-08-05T13:07:32.000Z","size":1811,"stargazers_count":32,"open_issues_count":0,"forks_count":5,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-09T22:04:46.459Z","etag":null,"topics":["caching","haproxy","nginx","php","varnish"],"latest_commit_sha":null,"homepage":"https://feryn.eu/presentations/varnish-in-depth-symfony-live-phantasialand-2018","language":null,"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/ThijsFeryn.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}},"created_at":"2013-06-03T08:44:23.000Z","updated_at":"2024-11-27T20:12:29.000Z","dependencies_parsed_at":"2022-08-28T23:31:40.539Z","dependency_job_id":null,"html_url":"https://github.com/ThijsFeryn/varnishtraining","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ThijsFeryn%2Fvarnishtraining","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ThijsFeryn%2Fvarnishtraining/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ThijsFeryn%2Fvarnishtraining/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ThijsFeryn%2Fvarnishtraining/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ThijsFeryn","download_url":"https://codeload.github.com/ThijsFeryn/varnishtraining/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248119296,"owners_count":21050755,"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":["caching","haproxy","nginx","php","varnish"],"created_at":"2024-11-24T00:52:49.312Z","updated_at":"2025-04-09T22:04:52.930Z","avatar_url":"https://github.com/ThijsFeryn.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# Varnish training\n\nThis repository contains the example code for the 6-hour Varnish training I created.\n\nThis is the second iteration of the training course and was first presented at [Symfony Live Berlin 2018](https://feryn.eu/presentations/varnish-in-depth-symfony-live-phantasialand-2018).\n\nThe first iteration was last delivered at [VarnishCon 2016](https://feryn.eu/presentations/varnish-training-varnishcon-2016) in Amsterdam and can be found in the v1 branch.\n\n## Depencencies\n\nYou'll need [Docker](https://www.docker.com/) to run these examples. All these examples are based on [docker-compose](https://docs.docker.com/compose/). Each example contains a `docker-compose.yml`file.\n\n## Setup\n\nThe Docker base boxes are as minimal as possible, you won't need a lot of bandwidth to be *up-and-running*. The Varnish base box is a little bigger than the rest.\n\nIf you want to run an example, go through the following steps\n\n1.  Choose an example.\n2.  Run `docker-compose up` or `docker-compose up -d` to boot the setup.\n3.  Go to http://localhost/ to run the example.\n4.  Shut the example containers down using the `docker-compose down` command.\n\n## Varnishlog access\n\nIf you want access to the `varnishlog` binary to monitor what's happening run `docker exec -ti sflive-varnish bash` to access the bash shell on the container. You can then run `varnishlog` including all the extra parameters.\n\nIf the example contains 2 Varnish instances, run both commands in a separate shell to access the `varnishlog` binary of both Varnish containers:\n\n```\ndocker exec -ti sflive-varnish bash\ndocker exec -ti sflive-varnish2 bash\n```\n\n## Docker images\n\nThe `docker-compose` setup for each example depends on the following container images:\n\n* https://hub.docker.com/r/thijsferyn/nginx/\n* https://hub.docker.com/r/thijsferyn/php/\n* https://hub.docker.com/r/thijsferyn/varnish/\n* https://hub.docker.com/r/thijsferyn/haproxy/\n\nYou can go ahead and pull these boxes using the following commands:\n\n```\ndocker pull thijsferyn/nginx:primary\ndocker pull thijsferyn/nginx:secondary\ndocker pull thijsferyn/php:primary\ndocker pull thijsferyn/php:secondary\ndocker pull thijsferyn/varnish:base\ndocker pull thijsferyn/varnish:primary\ndocker pull thijsferyn/varnish:secondary\ndocker pull thijsferyn/haproxy:latest\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthijsferyn%2Fvarnishtraining","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthijsferyn%2Fvarnishtraining","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthijsferyn%2Fvarnishtraining/lists"}