{"id":19356655,"url":"https://github.com/factorial-io/multibasebox","last_synced_at":"2025-09-23T13:18:20.651Z","repository":{"id":23584985,"uuid":"26953321","full_name":"factorial-io/multibasebox","owner":"factorial-io","description":"Serve multiple docker container with the help of haproxy.","archived":false,"fork":false,"pushed_at":"2023-03-17T04:52:59.000Z","size":35586,"stargazers_count":7,"open_issues_count":2,"forks_count":1,"subscribers_count":17,"default_branch":"main","last_synced_at":"2025-09-17T03:50:00.845Z","etag":null,"topics":["docker","haproxy","local-development","phabalicious","reverse-proxy"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/factorial-io.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":"2014-11-21T09:11:31.000Z","updated_at":"2023-03-17T04:29:19.000Z","dependencies_parsed_at":"2022-08-03T02:15:26.248Z","dependency_job_id":null,"html_url":"https://github.com/factorial-io/multibasebox","commit_stats":null,"previous_names":[],"tags_count":36,"template":false,"template_full_name":null,"purl":"pkg:github/factorial-io/multibasebox","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/factorial-io%2Fmultibasebox","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/factorial-io%2Fmultibasebox/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/factorial-io%2Fmultibasebox/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/factorial-io%2Fmultibasebox/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/factorial-io","download_url":"https://codeload.github.com/factorial-io/multibasebox/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/factorial-io%2Fmultibasebox/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":276582048,"owners_count":25667812,"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","status":"online","status_checked_at":"2025-09-23T02:00:09.130Z","response_time":73,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["docker","haproxy","local-development","phabalicious","reverse-proxy"],"created_at":"2024-11-10T07:05:13.148Z","updated_at":"2025-09-23T13:18:20.622Z","avatar_url":"https://github.com/factorial-io.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# multibasebox\n\nServe multiple docker container with the help of haproxy. Requires a running docker-environment\n\n## How it works\n\nMultibasebox consists of a simple shell script setting up name resolution and a haproxy container on your local environment.\n\nFor serving the different containers a separate docker-container named [haproxy-config](https://github.com/factorial-io/haproxy-config) will be pulled and started.\n\nhaproxy is listening on port 80 and 443 and will forward all requests to a specific docker-image. It uses the hostname to distinguish the containers.\n\n\n## Installation\n\n### With phabalicious\n\n[Phabalicious](https://github.com/factorial-io/phabalicious) is nicely integrated with multibasebox and has a dedicated command to setup multibasebox since version 3.3. Run\n\n```bash\nphab workspace:create\n```\n\nand answer the questions. The scaffolder will create a `fabfile.local.yaml` suited to your local setup.\n\nThat's it!\n\n### Manual setup\n\n1. Clone this repository,\n2. Run `bash ./setup-docker.sh`\n3. Visit `http://multibasebox.test:1936` This will show you the haproxy status page.\n\n### Integration with phabalicious\n\nIf you installed multibasebox with phabalicious, the following part is just for your information, as the phabalicious created this file already.  Here's a short example for `fabfile.local.yaml`, adapt it to your setup and it should work:\n\n```yaml\ndockerHosts:\n  mbb:\n    runLocally: true\n    rootFolder: \u003cabsolute-path-to-projects-folder\u003e\n\n\nhosts:\n  mbb:\n    xdebug:\n      remote_host: docker.for.mac.localhost\n    blueprint:\n      xdebug:\n        remote_host: docker.for.mac.localhost\n```\n\n## Linux-specific remarks\n\nThe script won't run the dnsmasq-container for linux, but there are some workarounds:\n\n### Fedora\n\n1. Create `/etc/NetworkManager/conf.d/00-use-dnsmaq.conf` with the following content\n\n      ```\n      dns=dnsmasq\n      ```\n2. Create `/etc/NetworkManager/dnsmasq.d/test.conf` with\n\n      ```\n      local=/test/\n      address=/.test/127.0.0.1\n      addn-hosts=/etc/hosts\n      ```\n3. Restart the NetworkManager with `sudo systemctl restart NetworkManager`\n\n### Other distributions\n\nAdd your hosts to `/etc/hosts` similar to\n\n```\n127.0.0.1 multibasebox.test \u003cyour-other-hosts.test\u003e\n```\n\ndnsmasq is available for a lot of linux distributions and it should be easy to install. Adapt your local config to sth similar.\n\n## Setup a new project\n\n1. Move your project-folder into `projects` or clone a repository into that folder.\n2. Your docker-container should use the environment-variables ``VHOST`` and ``VPORT`` (defaults to 80) to signalize haproxy which hostname should be used and on which port the http-service is listening inside the container. There's no need to expose the ports to the host. See the documentation of [haproxy-config](https://github.com/factorial-io/haproxy-config)\n\nPhabalicious may help you to administrate your project and docker-setup. For more info visit [fabalicious](https://github.com/factorial-io/phabalicious) It can also new projects.\n\n\n\n## Usage\n\nThe containers are setup to restart automatically. If you encounter problems just run\n\n```\nbash setup-docker.sh\n```\n\n\n## Status\n\nYou can see the status of haproxy at [http://multibasebox.test:1936](http://multibasebox.test:1936/)\n\n\n## Troubleshooting (Mac)\n\n### container are not reachable, Host is down messages\n\nTest if name resolution is working:\n\n```\ndscacheutil -q host -a name multibasebox.test\n```\n\nIf you get an error message, try restarting mDNSResponder with\n\n```\nsudo killall mDNSResponder\n```\nor reboot the machine.\n\nStill not working? Then try the `/etc/hosts`-route.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffactorial-io%2Fmultibasebox","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffactorial-io%2Fmultibasebox","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffactorial-io%2Fmultibasebox/lists"}