{"id":15576592,"url":"https://github.com/abn/noc-docker","last_synced_at":"2025-04-09T18:08:47.431Z","repository":{"id":34774770,"uuid":"38757380","full_name":"abn/noc-docker","owner":"abn","description":"NOC Project Docker container","archived":false,"fork":false,"pushed_at":"2015-07-08T15:53:25.000Z","size":132,"stargazers_count":6,"open_issues_count":1,"forks_count":3,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-03-23T20:05:23.719Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","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/abn.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}},"created_at":"2015-07-08T13:58:01.000Z","updated_at":"2019-05-14T16:05:57.000Z","dependencies_parsed_at":"2022-09-15T07:01:55.829Z","dependency_job_id":null,"html_url":"https://github.com/abn/noc-docker","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abn%2Fnoc-docker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abn%2Fnoc-docker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abn%2Fnoc-docker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abn%2Fnoc-docker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/abn","download_url":"https://codeload.github.com/abn/noc-docker/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248084743,"owners_count":21045132,"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":[],"created_at":"2024-10-02T18:52:44.216Z","updated_at":"2025-04-09T18:08:47.411Z","avatar_url":"https://github.com/abn.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# NOC Project Docker container\n\nDocker container for the [NOC Project](https://kb.nocproject.org/).\n\n## Quickstart\nNote that if the containers are not already downloaded, this will take a few minutes to complete.\n\n```sh\ncurl -O https://raw.githubusercontent.com/abn/noc-docker/master/noc\nchmod 755 noc\n\n# this starts the database containers and the data container\n./noc start\n\n# upgrade before running in order to finalize onfiguration\n./noc upgrade\n./noc runserver\n```\n\nOnce this is complete, you should be able to access NOC by visiting http://localhost:8000.\n\n## Configuring NOC\nThe `noc` helper script sets up your environment such that an instance named `noc-data` is used to persist data between runs. To edit configuration, you can load this up in any container with your favorite editor and modify files located at `/opt/noc/etc`.\n\n```sh\ndocker run --rm -it --volumes-from noc-data fedora:22 bash\n```\n\nThis command will drop you into a shell with the data mounted.\n\n## Configuring Database Passwords\nThe database passwords can be configured by either modifying the `noc` script or by using the environment variables `PG_PASSWORD` and/or `MONGO_PASSWORD` before initializing.\n\n## Accessing databases\n\n### Postgres\n```sh\ndocker run -it --link noc-postgres:postgres \\\n    -e \"PGPASSWORD=${PG_PASSWORD}\" \\\n    -e \"COMMAND=${COMMAND}\" \\\n    --rm postgres bash -c 'psql -h \"$POSTGRES_PORT_5432_TCP_ADDR\" -p \"$POSTGRES_PORT_5432_TCP_PORT\" -U noc'\n```\n### MongoDB\n```sh\ndocker run -it --link noc-mongo:mongo \\\n    -e \"COMMAND=${MONGO_CREATE_USER}\" \\\n    --rm mongo bash -c 'mongo \"$MONGO_PORT_27017_TCP_ADDR:$MONGO_PORT_27017_TCP_PORT/noc\"'\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fabn%2Fnoc-docker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fabn%2Fnoc-docker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fabn%2Fnoc-docker/lists"}