diff options
Diffstat (limited to 'compose.yml')
| -rw-r--r-- | compose.yml | 22 |
1 files changed, 13 insertions, 9 deletions
diff --git a/compose.yml b/compose.yml index aca365f..4eea970 100644 --- a/compose.yml +++ b/compose.yml @@ -1,17 +1,21 @@ # # # cgit-docker compose example - -name: 'cgit-docker' - services: cgit: - container_name: cgit-docker - image: ratdad/cgit-docker:latest + build: + context: . + dockerfile: Dockerfile + # You can also use the pre-built containers hosted at ghcr and docker. + # image: ghcr.io/bigratdad/cgit:latest + # image: ratdad/cgit:latest + env_file: + - .env ports: - 80:80 volumes: - - ./etc/httpd/conf/httpd.conf:/etc/httpd/conf/httpd.conf # apply custom httpd config - - ./etc/cgitrc:/etc/cgitrc # apply custom cgit runtime config - - ./opt/highlight.sh:/opt/highlight.sh # use a custom highlight script - - ./srv/git/:/srv/git # mount the dir cgit reads for repositories + # - ./favicon.ico:/srv/www/htdocs/cgit/favicon.ico # custom favicon + # - ./cgit.css:/srv/www/htdocs/cgit/cgit.css # custom cgit.css + - ./etc/httpd/conf/httpd.conf:/etc/httpd/conf/httpd.conf # You may want to change the httpd config on the server. + - ./etc/cgitrc:/etc/cgitrc # You can (and should) bind your own cgitrc. + - ./srv/git/:/srv/git # Bind the location of your git repos to /srv/git in the container. |
