{"id":14956764,"url":"https://github.com/pjortiz/docker-unifi-mongo","last_synced_at":"2025-10-24T10:31:02.618Z","repository":{"id":246135188,"uuid":"805950854","full_name":"pjortiz/docker-unifi-mongo","owner":"pjortiz","description":"docker-unifi-mongo","archived":false,"fork":false,"pushed_at":"2025-01-17T01:09:41.000Z","size":44,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-29T09:51:18.421Z","etag":null,"topics":["docker","docker-compose","docker-image","dockerfile","linuxserver","linuxserver-io","linuxserver-unifi-network-application","mongo","mongodb","mongosh","unifi","unifi-controller","unifi-network","unifi-network-application"],"latest_commit_sha":null,"homepage":"https://hub.docker.com/r/portiz93/unifi-mongo","language":"Dockerfile","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/pjortiz.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-05-25T23:48:44.000Z","updated_at":"2025-01-17T01:09:43.000Z","dependencies_parsed_at":"2024-06-26T03:42:18.076Z","dependency_job_id":"0302e51c-5796-40af-baae-6f15cc94b72b","html_url":"https://github.com/pjortiz/docker-unifi-mongo","commit_stats":{"total_commits":59,"total_committers":2,"mean_commits":29.5,"dds":0.4067796610169492,"last_synced_commit":"828804dc4edf7484b21947ea5bcf86ca3093ac61"},"previous_names":["pjortiz/docker-unifi-mongo"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pjortiz%2Fdocker-unifi-mongo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pjortiz%2Fdocker-unifi-mongo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pjortiz%2Fdocker-unifi-mongo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pjortiz%2Fdocker-unifi-mongo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pjortiz","download_url":"https://codeload.github.com/pjortiz/docker-unifi-mongo/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":237950828,"owners_count":19392667,"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","docker-compose","docker-image","dockerfile","linuxserver","linuxserver-io","linuxserver-unifi-network-application","mongo","mongodb","mongosh","unifi","unifi-controller","unifi-network","unifi-network-application"],"created_at":"2024-09-24T13:13:27.589Z","updated_at":"2025-10-24T10:31:02.611Z","avatar_url":"https://github.com/pjortiz.png","language":"Dockerfile","funding_links":[],"categories":[],"sub_categories":[],"readme":"# docker-unifi-mongo \u003c!-- omit in toc --\u003e\n\n## Table of Contents \u003c!-- omit in toc --\u003e\n\n- [Latest Major Version ](#latest-major-version-)\n- [Quick reference](#quick-reference)\n- [About](#about)\n- [Usage](#usage)\n  - [Docker Compose](#docker-compose)\n  - [Docker CLI](#docker-cli)\n    - [Create the network](#create-the-network)\n    - [Create the volume](#create-the-volume)\n    - [Run the MongoDB container](#run-the-mongodb-container)\n- [Build Your Own Image](#build-your-own-image)\n  - [Adding your own scripts](#adding-your-own-scripts)\n- [Disclaimer](#disclaimer)\n\n_______________________________________\n\n## Latest Major Version [![Build CI](https://github.com/pjortiz/docker-unifi-mongo/actions/workflows/build_ci.yml/badge.svg)](https://github.com/pjortiz/docker-unifi-mongo/actions/workflows/build_ci.yml)\n\n| 3.x | 4.x | 5.x | 6.x | 7.x | 8.x |\n| - | - | - | - | - | - |\n|![Dynamic JSON Badge](https://img.shields.io/badge/dynamic/json?url=https%3A%2F%2Fraw.githubusercontent.com%2Fpjortiz%2Fdocker-unifi-mongo%2Fmain%2Fbuild_info%2F3.0%2Fjessie%2Fbuild_info.json\u0026query=%24.name\u0026label=tag)\u003cbr\u003e![Dynamic JSON Badge](https://img.shields.io/badge/dynamic/json?url=https%3A%2F%2Fraw.githubusercontent.com%2Fpjortiz%2Fdocker-unifi-mongo%2Fmain%2Fbuild_info%2F3.0%2Fstretch%2Fbuild_info.json\u0026query=%24.name\u0026label=tag)\u003cbr\u003e![Dynamic JSON Badge](https://img.shields.io/badge/dynamic/json?url=https%3A%2F%2Fraw.githubusercontent.com%2Fpjortiz%2Fdocker-unifi-mongo%2Fmain%2Fbuild_info%2F3.0%2Fxenial%2Fbuild_info.json\u0026query=%24.name\u0026label=tag)|![Dynamic JSON Badge](https://img.shields.io/badge/dynamic/json?url=https%3A%2F%2Fraw.githubusercontent.com%2Fpjortiz%2Fdocker-unifi-mongo%2Fmain%2Fbuild_info%2F4.0%2Fbionic%2Fbuild_info.json\u0026query=%24.name\u0026label=tag)\u003cbr\u003e![Dynamic JSON Badge](https://img.shields.io/badge/dynamic/json?url=https%3A%2F%2Fraw.githubusercontent.com%2Fpjortiz%2Fdocker-unifi-mongo%2Fmain%2Fbuild_info%2F4.0%2Ffocal%2Fbuild_info.json\u0026query=%24.name\u0026label=tag)\u003cbr\u003e![Dynamic JSON Badge](https://img.shields.io/badge/dynamic/json?url=https%3A%2F%2Fraw.githubusercontent.com%2Fpjortiz%2Fdocker-unifi-mongo%2Fmain%2Fbuild_info%2F4.0%2Fxenial%2Fbuild_info.json\u0026query=%24.name\u0026label=tag)|![Dynamic JSON Badge](https://img.shields.io/badge/dynamic/json?url=https%3A%2F%2Fraw.githubusercontent.com%2Fpjortiz%2Fdocker-unifi-mongo%2Fmain%2Fbuild_info%2F5.0%2Ffocal%2Fbuild_info.json\u0026query=%24.name\u0026label=tag)|![Dynamic JSON Badge](https://img.shields.io/badge/dynamic/json?url=https%3A%2F%2Fraw.githubusercontent.com%2Fpjortiz%2Fdocker-unifi-mongo%2Fmain%2Fbuild_info%2F6.0%2Ffocal%2Fbuild_info.json\u0026query=%24.name\u0026label=tag)\u003cbr\u003e![Dynamic JSON Badge](https://img.shields.io/badge/dynamic/json?url=https%3A%2F%2Fraw.githubusercontent.com%2Fpjortiz%2Fdocker-unifi-mongo%2Fmain%2Fbuild_info%2F6.0%2Fjammy%2Fbuild_info.json\u0026query=%24.name\u0026label=tag)|![Dynamic JSON Badge](https://img.shields.io/badge/dynamic/json?url=https%3A%2F%2Fraw.githubusercontent.com%2Fpjortiz%2Fdocker-unifi-mongo%2Fmain%2Fbuild_info%2F7.0%2Fjammy%2Fbuild_info.json\u0026query=%24.name\u0026label=tag)|![Dynamic JSON Badge](https://img.shields.io/badge/dynamic/json?url=https%3A%2F%2Fraw.githubusercontent.com%2Fpjortiz%2Fdocker-unifi-mongo%2Fmain%2Fbuild_info%2F8.0%2Fnoble%2Fbuild_info.json\u0026query=%24.name\u0026label=tag)|\n\n_______________________________________\n\n## Quick reference\n\n- [pjortiz/docker-compose-unifi-network-application](https://github.com/pjortiz/docker-compose-unifi-network-application)\n- [Mongo](https://hub.docker.com/_/mongo) Official Image\n- [linuxserver/unifi-network-application](https://hub.docker.com/r/linuxserver/unifi-network-application) Official Image\n\n_______________________________________\n\n## About\n\nThis image is packaged with the required mongo init script to set up [linuxserver/unifi-network-application](https://hub.docker.com/r/linuxserver/unifi-network-application).\n\n_______________________________________\n\n## Usage\n\n### Docker Compose\n\n```yaml\nversion: \"3.7\"\nnetworks:\n  # proxy-network: # optional, Use this network or your own if you intend to configure the unifi-network-application container through a revers proxy, otherwise not needed.\n    # external: true\n  unifi:\nvolumes: # You can change the volumes' device path if you want, otherwise no need to change, default Docker volume folder location will be used \n  unifi_mongo_data:\nservices:\n  unifi-mongo-db:\n    image: portiz93/unifi-mongo:${MONGO_VERSION:-6.0.15}    # Required MONGO_VERSION, Default \"6.0.15\", specify whatever Mongo version tag you need. DO NOT set 'latest' tag\n    container_name: unifi-mongo-db\n    environment:\n      # - MONGO_INITDB_ROOT_USERNAME=${MONGO_INITDB_ROOT_USERNAME:-root}                    # Required only if using mongodb version \u003c 6.0, otherwise do not set (See official Mongo image)\n      # - MONGO_INITDB_ROOT_PASSWORD=${MONGO_INITDB_ROOT_PASSWORD:?Root Password Required}  # Required only if using mongodb version \u003c 6.0, otherwise do not set  (See official Mongo image)\n      - MONGO_USER=${MONGO_USER:-unifi}                     # Default \"unifi\"\n      - MONGO_PASS=${MONGO_PASS:?Mongo Password Required}   # Required\n      - MONGO_DBNAME=${MONGO_DBNAME:-unifi}                 # Default \"unifi\"\n    volumes:\n      - unifi_mongo_data:/data/db\n    # ports:\n    #   - 27017:27017                                       # optional, Default \"27017\", only port if needed outside of unifi app\n    networks:\n      unifi:\n    restart: unless-stopped\n```\n\n### Docker CLI\n\n#### Create the network\n\n```bash\ndocker network create unifi\n```\n\n#### Create the volume\n\n```bash\ndocker volume create unifi_mongo_data\n```\n\n#### Run the MongoDB container\n\n```bash\ndocker run -d \\\n  --name unifi-mongo-db \\\n  --network unifi \\\n  -v unifi_mongo_data:/data/db \\\n  -e MONGO_USER=unifi \\\n  -e MONGO_PASS=your_mongo_password_here \\\n  -e MONGO_DBNAME=unifi \\\n  --restart unless-stopped \\\n  portiz93/unifi-mongo:6.0.15\n```\n\n_______________________________________\n\n## Build Your Own Image\n\n```bash\ndocker build -t unifi-mongo:6.0.15 --build-arg MONGO_VERSION=6.0.15 . \n```\n\n### Adding your own scripts\n\nIf you need a custom script based on your needs. After forking/clone this repo create a directory under `scripts` with your specific Mongo version tag (e.g. `scripts/6.0.15`), then add your script(s) in that new directory. Then run the above build command with your specific version.\n\n## Disclaimer\n\nI have not validated any of the images as to whether they are working as expected apart from the image(s) I use myself. Please create an issue and I will see if I can address/accommodate your needs.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpjortiz%2Fdocker-unifi-mongo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpjortiz%2Fdocker-unifi-mongo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpjortiz%2Fdocker-unifi-mongo/lists"}