{"id":13437364,"url":"https://github.com/marcopompili/docker-nginx-git","last_synced_at":"2025-03-19T06:31:02.580Z","repository":{"id":142758855,"uuid":"50784354","full_name":"marcopompili/docker-nginx-git","owner":"marcopompili","description":"Docker image for a Git HTTP server on Nginx.","archived":false,"fork":false,"pushed_at":"2021-01-25T15:13:08.000Z","size":17,"stargazers_count":11,"open_issues_count":0,"forks_count":10,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-12-22T10:34:36.355Z","etag":null,"topics":["docker-image","git","nginx"],"latest_commit_sha":null,"homepage":"","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/marcopompili.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":"2016-01-31T16:48:50.000Z","updated_at":"2023-03-05T01:08:06.000Z","dependencies_parsed_at":null,"dependency_job_id":"8b92f528-b76e-411d-814f-58019522d176","html_url":"https://github.com/marcopompili/docker-nginx-git","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/marcopompili%2Fdocker-nginx-git","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marcopompili%2Fdocker-nginx-git/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marcopompili%2Fdocker-nginx-git/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marcopompili%2Fdocker-nginx-git/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/marcopompili","download_url":"https://codeload.github.com/marcopompili/docker-nginx-git/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244370966,"owners_count":20442319,"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-image","git","nginx"],"created_at":"2024-07-31T03:00:56.374Z","updated_at":"2025-03-19T06:31:02.574Z","avatar_url":"https://github.com/marcopompili.png","language":"Dockerfile","funding_links":[],"categories":["HarmonyOS"],"sub_categories":["Windows Manager"],"readme":"# docker-nginx-git\n\n[![](https://img.shields.io/docker/v/emarcs/nginx-git.svg)](https://hub.docker.com/r/emarcs/nginx-git) [![](https://img.shields.io/docker/image-size/emarcs/nginx-git)](https://hub.docker.com/r/emarcs/nginx-git) ![Pulls](https://img.shields.io/docker/pulls/emarcs/nginx-git.svg)\n\nDocker image for a Git HTTP server on Nginx.\n\nThis image is based on the [phusion/baseimage](https://github.com/phusion/baseimage-docker)\nbase image for solving the PID 1 problem of Docker and for other factors.\n\nFor more informations check these links:\n\n*   [Docker and the PID 1 zombie reaping problem](https://blog.phusion.nl/2015/01/20/docker-and-the-pid-1-zombie-reaping-problem/)\n\n*   [Baseimage-docker](http://phusion.github.io/baseimage-docker/)\nthe base image used in this image.\n\n## Installation\n\nDownload the image from the docker's hub:\n\n```shell\ndocker pull emarcs/nginx-git\n```\n\n## Usage\n\nThe simply run a container, remember to mount a volume from the host\nwith all your repositories, in the example the host folder __/git__\nis mounted in the container at: __/srv/git__:\n\n```shell\ndocker run -d -p 8180:80 -v /git:/srv/git emarcs/nginx-git\n```\n\n### Docker Compose\n\nHere's an example using Docker Compose:\n\n```yml\ntest_srv:\n  image: emarcs/nginx-git\n  ports:\n    - 8180:80\n  volumes:\n    - /srv/git:/srv/git\n    - logs:/var/log/nginx\n    # add your custom username and password (default is: admin, admin)\n    - ./htpasswd:/srv/htpasswd\n    # if you want to use a custom configuration\n    - ./default.conf:/etc/nginx/conf.d/default.conf\n  environment:\n    GIT_POSTBUFFER: 1048576\n```\n\nTest it:\n\n```shell\ngit clone http://localhost:8180/myrepo.git\n```\n\nDefault username and password are admin/admin. I strongly suggest you to update the htpasswd file with your password, like so:\n\n```shell\nhtpasswd htpasswd admin\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarcopompili%2Fdocker-nginx-git","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmarcopompili%2Fdocker-nginx-git","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarcopompili%2Fdocker-nginx-git/lists"}