Sign inSign up

beli3ver/cgit-nginx

By beli3ver

•Updated about 5 years ago

Image
0

664

beli3ver/cgit-nginx repository overview

⁠cgit-nginx

A debian based docker for cgit with nginx

⁠Installation

Download this image from the docker hub:

docker pull beli3ver/cgit-nginx

⁠Usage

⁠docker command

You can use this docker with a simple docker command

docker run -d -p 8181:80 --name cgit -v /srv/git/:/srv/git -v /var/cache/cgit:/var/cache/cgit beli3ver/cgit-nginx:latest
⁠docker-compose command

I created a little docker-compose.yml file that you can use:


version: '3'
services:
  app:
    image: beli3ver/cgit-nginx:latest
    container_name: cgit
    restart: always
    ports:
      - 8181:80
    volumes:
      - /srv/git:/srv/git
      - /var/cache/cgit:/var/cache/cgit
      #only needed if you want to replace default files
      #- ./default.conf:/etc/nginx/sites-available/default
      #- ./cgitrc:/etc/cgitrc

Tag summary

Content type

Image

Digest

Size

133.7 MB

Last updated

about 5 years ago

docker pull beli3ver/cgit-nginx