Skip to content
README.md 1 KiB
Newer Older
nimrod's avatar
nimrod committed
# cgit

nimrod's avatar
nimrod committed
[![coverage report](https://git.shore.co.il/shore/cgit-docker/badges/master/coverage.svg)](https://git.shore.co.il/shore/cgit-docker/-/commits/master)

nimrod's avatar
nimrod committed
> cgit Docker image.

nimrod's avatar
nimrod committed
## Usage

This container runs Apache that is configured with cgit at `/cgit`. It exposes
port 80 and serves the repositories under `/srv/git`. The container runs as
nimrod's avatar
nimrod committed
a limited user (`www-data`), so make sure to have the content of `/srv/git`
readble by it. Also, if you wish to persist the cache, the location is
`/var/cache/cgit`.

## Example usage

```
docker -v '/srv/git:/srv/git:ro' -p '80:80' adarnimrod/cgit
nimrod's avatar
nimrod committed
```

There's also a `docker-compose.yml` as further example.

nimrod's avatar
nimrod committed
## License

This software is licensed under the MIT license (see `LICENSE.txt`).

## Author Information

nimrod's avatar
nimrod committed
Nimrod Adar, [contact me](mailto:nimrod@shore.co.il) or visit my
[website](https://www.shore.co.il/). Patches are welcome via
[`git send-email`](http://git-scm.com/book/en/v2/Git-Commands-Email). The repository
nimrod's avatar
nimrod committed
is located at: <https://git.shore.co.il/explore/>.