{"id":20514837,"url":"https://github.com/rattydave/docker-httptest","last_synced_at":"2026-04-24T22:34:52.149Z","repository":{"id":85631977,"uuid":"235759190","full_name":"RattyDAVE/docker-httptest","owner":"RattyDAVE","description":"TINY docker container that shows uname -a when you send it a http request. Usefull for testing clusters.","archived":false,"fork":false,"pushed_at":"2020-10-30T14:50:57.000Z","size":17,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-20T03:06:50.206Z","etag":null,"topics":["cluster-setup","docker","docker-container","docker-httptest","docker-image","http","http-server","letsencrypt","letsencrypt-certificates","letsencrypt-plugin","nginx-proxy","reverse-proxy","reverse-proxy-server","small","small-example","ssl","ssl-certificates","testing-clusters","testing-tools"],"latest_commit_sha":null,"homepage":null,"language":"Dockerfile","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/RattyDAVE.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","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},"funding":{"github":"rattydave","patreon":null,"open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"custom":null}},"created_at":"2020-01-23T09:09:33.000Z","updated_at":"2022-02-11T21:16:22.000Z","dependencies_parsed_at":"2023-03-09T16:45:13.431Z","dependency_job_id":null,"html_url":"https://github.com/RattyDAVE/docker-httptest","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/RattyDAVE/docker-httptest","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RattyDAVE%2Fdocker-httptest","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RattyDAVE%2Fdocker-httptest/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RattyDAVE%2Fdocker-httptest/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RattyDAVE%2Fdocker-httptest/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/RattyDAVE","download_url":"https://codeload.github.com/RattyDAVE/docker-httptest/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RattyDAVE%2Fdocker-httptest/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32243398,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-24T13:21:15.438Z","status":"ssl_error","status_checked_at":"2026-04-24T13:21:15.005Z","response_time":64,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["cluster-setup","docker","docker-container","docker-httptest","docker-image","http","http-server","letsencrypt","letsencrypt-certificates","letsencrypt-plugin","nginx-proxy","reverse-proxy","reverse-proxy-server","small","small-example","ssl","ssl-certificates","testing-clusters","testing-tools"],"created_at":"2024-11-15T21:18:27.039Z","updated_at":"2026-04-24T22:34:52.118Z","avatar_url":"https://github.com/RattyDAVE.png","language":"Dockerfile","readme":"# docker-httptest\n\n\n## Basic setup\n\nTINY docker container that shows uname -a when you send it a http request. Usefull for testing clusters.\n\n```\ndocker run -d --rm --name httptest -p 80:8000 rattydave/httptest\n```\n\n\n## Auto Update\n\nTo automatically update I recomend using watchtower.\n\n```\ndocker run -d \\\n    --name watchtower \\\n    -v /var/run/docker.sock:/var/run/docker.sock \\\n    containrrr/watchtower\n```\n\n## Reverse Proxy Setup\n\nIn this example we need a DNS name and nginx-proxy. This is one of best containers out there and easy to use.\n\nFirst point you domain name to the ip address of the docker host server. (This can either be a 'A', 'AAAA' or 'CNAME' record)\n\n```\ndocker run -d --name nginx-proxy \\\n    --publish 80:80 \\\n    --publish 443:443 \\\n    --volume /etc/nginx/certs \\\n    --volume /etc/nginx/vhost.d \\\n    --volume /usr/share/nginx/html \\\n    --volume /var/run/docker.sock:/tmp/docker.sock:ro \\\n    jwilder/nginx-proxy\n```\n\nThis set up the reverse proxy. \n\nThen start the http test container. \n\n```\ndocker run -d \\\n    --env \"VIRTUAL_HOST=hostname.com\" \\\n    --env \"VIRTUAL_PORT=8000\" \\\n    rattydave/httptest\n```\n\nNow it is test time. Open a browser and access http://hostname.com. You should see the uname -a output. If you hit refesh a few times you will notice this information does not change.\n\n## Cluster Setup\n\nFor cluster setup follow the Reverse Proxy Setup then add another http test container using EXACTLY the same command.\n\n```\ndocker run -d \\\n    --env \"VIRTUAL_HOST=hostname.com\" \\\n    --env \"VIRTUAL_PORT=8000\" \\\n    rattydave/httptest\n```\n\nRefesh the browser (a few times) and you will now see it will alternate between the host names.\n\nYou can add more using the above process and it will switch between them all.\n\n## To add SSL certs.\n\nTo add SSL certificates to the reverse proxy you can add the following container that works in conjunction with nginx-proxy.\n\n```\ndocker run --detach \\\n    --name nginx-proxy-letsencrypt \\\n    --volumes-from nginx-proxy \\\n    --volume /var/run/docker.sock:/var/run/docker.sock:ro \\\n    --env \"DEFAULT_EMAIL=your@email.com\" \\\n    jrcs/letsencrypt-nginx-proxy-companion\n```\n\nNote: replace `your@email.com` with your email.\n\nYou need to make a small change to the httptest container.  \n\n```\ndocker run -d \\\n    --env \"VIRTUAL_HOST=hostname.com\" \\\n    --env \"VIRTUAL_PORT=8000\" \\\n    --env \"LETSENCRYPT_HOST=hostname.com\" \\\n    rattydave/httptest\n```\n\nOpen a browser and access https://hostname.com. (Note: httpS). You should now have a secure connection. \n\n\n\n\n\n","funding_links":["https://github.com/sponsors/rattydave"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frattydave%2Fdocker-httptest","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frattydave%2Fdocker-httptest","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frattydave%2Fdocker-httptest/lists"}