{"id":21038502,"url":"https://github.com/tuenti/haproxy-docker-wrapper","last_synced_at":"2025-05-15T15:33:37.507Z","repository":{"id":64305860,"uuid":"64774641","full_name":"tuenti/haproxy-docker-wrapper","owner":"tuenti","description":"Docker-friendly wrapper for haproxy","archived":false,"fork":false,"pushed_at":"2018-11-06T05:02:24.000Z","size":344,"stargazers_count":7,"open_issues_count":0,"forks_count":3,"subscribers_count":9,"default_branch":"master","last_synced_at":"2025-04-03T11:11:11.341Z","etag":null,"topics":["docker-image","haproxy","haproxy-docker"],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tuenti.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-08-02T16:44:12.000Z","updated_at":"2021-07-20T07:42:44.000Z","dependencies_parsed_at":"2023-01-15T10:30:29.657Z","dependency_job_id":null,"html_url":"https://github.com/tuenti/haproxy-docker-wrapper","commit_stats":null,"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tuenti%2Fhaproxy-docker-wrapper","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tuenti%2Fhaproxy-docker-wrapper/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tuenti%2Fhaproxy-docker-wrapper/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tuenti%2Fhaproxy-docker-wrapper/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tuenti","download_url":"https://codeload.github.com/tuenti/haproxy-docker-wrapper/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254367895,"owners_count":22059583,"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-image","haproxy","haproxy-docker"],"created_at":"2024-11-19T13:32:44.679Z","updated_at":"2025-05-15T15:33:37.046Z","avatar_url":"https://github.com/tuenti.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"haproxy-docker-wrapper\n======================\n\nThis repository contains the code for an haproxy wrapper with these features:\n\n* Embedded syslog server to redirect haproxy logs to standard output\n* HTTP entry point to trigger haproxy configuration reloads\n\nIt also includes a Dockerfile to extend official haproxy dockers with\nthis wrapper.\n\nUsage\n-----\n\nStart the wrapper passing as arguments the configuration needed for your\nenvironment, the defaults play well with the official haproxy docker image and\nthe included Dockerfile uses this image as base.\n\nConfiguration directory is exposed as a volume. Sidecar container in charge of\ngenerating the configuration should use this volume. Both containers should\nalso be in the same network namespace, so it can reach the control entry point\nwithout needing to expose it beyond a local interface.\n\nTo trigger a configuration reload, send an HTTP GET request to /reload in the\ncontrol entry point (http://127.0.0.1:15000/reload by default).\n\nHaproxy must be configured in *daemon* mode.\n\nWhy?\n----\n\nWhen trying to deploy haproxy in docker, you may face some recurrent problems:\n\n* haproxy only logs to syslog unless it's executed in debug mode, what is not\n  recommended for production environments. In docker deployments it is usual to\n  log everything to standard output and let logging drivers decide how to\n  handle these logs.\n* Configuration reload in haproxy needs access to the pid namespace, to the\n  pid file and to the configuration file. Providing all this from a sidecar\n  container like [kube2lb](https://github.com/tuenti/kube2lb/tree/master/examples)\n  is quite complex. Not using sidecar and including the software managing the\n  configuration in the same container makes any update in this software to\n  require also a full restart of haproxy.\n\nCredits \u0026 Contact\n-----------------\n\n`haproxy-docker-wrapper` was created by [Tuenti Technologies S.L.](http://github.com/tuenti)\n\nYou can follow Tuenti engineering team on Twitter [@tuentieng](http://twitter.com/tuentieng).\n\nLicense\n-------\n\n`haproxy-docker-wrapper` is available under the Apache License, Version 2.0. See LICENSE file\nfor more info.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftuenti%2Fhaproxy-docker-wrapper","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftuenti%2Fhaproxy-docker-wrapper","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftuenti%2Fhaproxy-docker-wrapper/lists"}