{"id":22178149,"url":"https://github.com/cmason3/unifi","last_synced_at":"2025-03-24T18:42:47.988Z","repository":{"id":209055662,"uuid":"723119998","full_name":"cmason3/unifi","owner":"cmason3","description":"UniFi Network Controller as a Container","archived":false,"fork":false,"pushed_at":"2025-03-01T17:53:28.000Z","size":32,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-01T18:33:00.881Z","etag":null,"topics":["containers","podman","raspberry-pi","unifi","unifi-controller"],"latest_commit_sha":null,"homepage":"","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/cmason3.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}},"created_at":"2023-11-24T18:31:53.000Z","updated_at":"2025-03-01T17:53:31.000Z","dependencies_parsed_at":"2024-12-02T18:15:36.546Z","dependency_job_id":null,"html_url":"https://github.com/cmason3/unifi","commit_stats":null,"previous_names":["cmason3/unifi"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cmason3%2Funifi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cmason3%2Funifi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cmason3%2Funifi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cmason3%2Funifi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cmason3","download_url":"https://codeload.github.com/cmason3/unifi/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245330445,"owners_count":20597772,"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":["containers","podman","raspberry-pi","unifi","unifi-controller"],"created_at":"2024-12-02T08:45:37.727Z","updated_at":"2025-03-24T18:42:47.980Z","avatar_url":"https://github.com/cmason3.png","language":"Dockerfile","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003eUniFi Network Controller\u003c/h1\u003e\n\u003ch2 align=\"center\"\u003eRaspberry Pi 5 and Podman\u003c/h2\u003e\n\u003ch3\u003eLatest Tested Version: 9.0.114\u003c/h3\u003e\n\n```\nsudo groupadd -g 99 -r unifi\nsudo useradd -u 99 -g 99 -r -l unifi\n```\n\n```\nsudo mkdir -p /var/lib/unifi\nsudo chown -R unifi:unifi /var/lib/unifi\n\nsudo mkdir -p /var/log/unifi\nsudo chown -R unifi:unifi /var/log/unifi\n```\n\n```\nsudo podman system prune -a -f\n\nsudo podman build --no-cache --pull -t unifi:latest --format docker \\\n  -f https://raw.githubusercontent.com/cmason3/unifi/main/Dockerfile\n\nsudo podman create --name unifi --tz=local --network host \\\n  -v /var/lib/unifi:/var/lib/unifi:Z \\\n  -v /var/log/unifi:/var/log/unifi:Z \\\n  unifi:latest\n\nsudo podman generate systemd -n --restart-policy=always unifi \\\n  | sudo tee /etc/systemd/system/unifi.service 1\u003e/dev/null\n\nsudo systemctl daemon-reload\nsudo systemctl enable --now unifi\n```\n\nIf you want to use a Let's Encrypt TLS Certificate for your UniFi Network Controller then you can use the following commands to import the certificate into UniFi, although you will need to remember to renew it every 90 days (you can put this into a script and call it from the certbot cronjob using \"--deploy-hook /etc/certbot-renew.sh\"):\n\n```\nsudo openssl pkcs12 -export -in \"/etc/letsencrypt/live/${DOMAIN}/fullchain.pem\" -inkey \"/etc/letsencrypt/live/${DOMAIN}/privkey.pem\" \\\n  -out \"/var/lib/unifi/pkcs12.tmp\" -passout pass:\"aircontrolenterprise\" -name \"unifi\"\n\nsudo chown unifi:unifi /var/lib/unifi/pkcs12.tmp\n\nsudo cp /var/lib/unifi/keystore /var/lib/unifi/keystore.bak\n\nsudo podman exec -it unifi keytool -delete -alias \"unifi\" -keystore \"/var/lib/unifi/keystore\" -deststorepass \"aircontrolenterprise\"\n\nsudo podman exec -it unifi keytool -importkeystore -srckeystore \"/var/lib/unifi/pkcs12.tmp\" -srcstoretype PKCS12 -srcstorepass \"aircontrolenterprise\" \\\n  -destkeystore \"/var/lib/unifi/keystore\" -deststorepass \"aircontrolenterprise\" -destkeypass \"aircontrolenterprise\" -alias \"unifi\" -trustcacerts\n\nsudo systemctl restart unifi\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcmason3%2Funifi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcmason3%2Funifi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcmason3%2Funifi/lists"}