summaryrefslogtreecommitdiff
path: root/compose.yml
blob: 82b5ce86832261ca4283edf921cb7d9344bea0f9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#
#
# cgit-docker compose example
services:
  cgit:
    # You can also use the pre-built containers hosted at ghcr and docker.
    # image: ghcr.io/bigratdad/cgit:latest
    # image: ratdad/cgit:latest
    build:
      context: .
      dockerfile: Dockerfile
      # args:
      #   - ENABLE_GIT_HTTP=0
    env_file:
      - .env
    ports:
      - 80:80
    volumes:
      # - ./favicon.ico:/srv/www/htdocs/cgit/favicon.ico # custom favicon
      # - ./cgit.css:/srv/www/htdocs/cgit/cgit.css # custom cgit.css
      - ./etc/cgitrc:/etc/cgitrc # You can (and should) bindmount your own cgitrc.
      - ./srv/git/:/srv/git:ro # I do not recommend creating repos from inside the container. Make it read-only.