{"id":23738060,"url":"https://github.com/csmart/unifi-controller","last_synced_at":"2026-01-27T17:04:11.595Z","repository":{"id":152854989,"uuid":"622370687","full_name":"csmart/unifi-controller","owner":"csmart","description":null,"archived":false,"fork":false,"pushed_at":"2023-04-02T22:51:32.000Z","size":2,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-31T19:34:23.725Z","etag":null,"topics":[],"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/csmart.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,"zenodo":null}},"created_at":"2023-04-01T22:50:59.000Z","updated_at":"2023-04-02T00:53:04.000Z","dependencies_parsed_at":"2024-08-01T09:06:48.419Z","dependency_job_id":null,"html_url":"https://github.com/csmart/unifi-controller","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/csmart/unifi-controller","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/csmart%2Funifi-controller","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/csmart%2Funifi-controller/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/csmart%2Funifi-controller/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/csmart%2Funifi-controller/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/csmart","download_url":"https://codeload.github.com/csmart/unifi-controller/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/csmart%2Funifi-controller/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28816573,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-27T12:25:15.069Z","status":"ssl_error","status_checked_at":"2026-01-27T12:25:05.297Z","response_time":168,"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":[],"created_at":"2024-12-31T08:52:33.767Z","updated_at":"2026-01-27T17:04:11.590Z","avatar_url":"https://github.com/csmart.png","language":"Dockerfile","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Unifi Controller\n\nBuild a Debian based container to run the Ubiquiti Unifi Controller from\nofficial repositories.\n\nIt is designed to run as a rootless container with `podman`, meaning it's run\nas an unprivileged user on the host but as `root` inside the container.\n\nThis uses `systemd` inside the container to manage the MongoDB database service\nas well as the controller itself.\n\nThe Unifi Controller is hard-coded to depend on MongoDB version `4`, however\nthis is no-longer supported on Debian. Version `5` does seem to run fine, so\nthis container includes a packaging hack to remove the dependency.\n\n## Build container\n\nUse `podman` to build the container from inside this repo.\n\n```bash\ncd unifi-controller\npodman build -t unifi .\n```\n\n## Create volume for data\n\nCreate a volume to store the controller data and MongoDB database.\n\n```bash\npodman volume create unifi-data\n```\n\nYou can inspect this volume, which will show information such as the path\n(should you need it).\n\n```bash\npodman volume inspect unifi-data\n```\n\n## Running container\n\nRun the container in detached mode, passing in the volume we created above and\nusing host networking (so that the controller can find devices).\n\n```bash\npodman run \\\n  --detach \\\n  --network=host \\\n  --volume unifi-data:/var/lib/unifi:z \\\n  --name unifi \\\n  localhost/unifi\n```\n\n### Set up controller\n\nThis should run a TLS web server on your machine, listening on `*:8443`. Open\nthis URL in a browser (e.g. https://localhost:8443) in a web browser and\nfollow the instructions.\n\nIf you have a backup from a previous controller, restore it when prompted.\n\nOtherwise, set up a new configuration.\n\nYou can choose not to connect it to the cloud by using Advanced configuration.\nIn this case, create a local account and rely on local backups and the\ncontainer data for persistency.\n\n## Stopping the container\n\nYou can stop the container and start it again at any time.\n\n```bash\npodman stop unifi\npodman start unifi\n```\n\nAs the container runs MongoDB and the Unifi Controller as services inside the\ncontainer, you can also interact with them directly, if you want to.\n\n```bash\npodman exec unifi systemctl status unifi\npodman exec unifi systemctl status mongod\n```\n\n## Deleting the container\n\nYou can delete the container at any time (data will not be lost).\n\n```bash\npodman rm --force unifi\n```\n\nIf you delete the container, you'll need to run it again using [the commands\nabove](#running-container).\n\nRemember, your data is stored in the `unifi-data` volume. If you run the\ncontainer again, all of your data should still be there and you can log in with\nyour existing credentials.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcsmart%2Funifi-controller","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcsmart%2Funifi-controller","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcsmart%2Funifi-controller/lists"}