diff options
| -rw-r--r-- | docker-compose.yml | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/docker-compose.yml b/docker-compose.yml index 40e412c..59617a9 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,22 +1,25 @@ # example config services: cgit: + image: jarlucmat/cgit:latest restart: always container_name: cgit - build: . 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: - - ./path/to/your/git/repos:/srv/git/:ro + # you need to overwrite the config to set your repos + - ./cgitrc:/etc/cgit/cgitrc:ro - cgit-cache:/opt/cgit/cache:rw - # if you want to override the default style, logo, favicon, config, etc + - ./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 - #- ./cgitrc:/opt/cgit/cgitrc:ro volumes: cgit-cache: |
