# example config
services:
cgit:
image: jarlucmat/cgit:latest
# build: .
restart: always
container_name: cgit
ports:
- "8086:80"
environment:
# uid and gid should match the id used for your git repos
# so that cgit has the permissions to read them
PUID: "1000"
PGID: "1000"
volumes:
# you need to overwrite the config to set your repos
- ./cgitrc:/etc/cgitrc:ro
- cgit-cache:/opt/cgit/cache:rw
- ./path/to/your/git/repos:/srv/git/:ro
# if you want to override the default style, logo, favicon, etc
#- ./cgit.css:/opt/cgit/app/cgit.css:ro
#- ./cgit.png:/opt/cgit/app/cgit.png:ro
#- ./favicon.ico:/opt/cgit/app/favicon.ico:ro
volumes:
cgit-cache: