summaryrefslogtreecommitdiff
path: root/docker-compose.yml
blob: e6091fe107fb495c3f666f14d3f746f20d412cf9 (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
26
# 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: