blob: 59617a95107a0303ee09985bc1452e44f230f36f (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
# example config
services:
cgit:
image: jarlucmat/cgit:latest
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/cgit/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:
|