blob: 4eea970044c54aeef09be0706706798a88082431 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
#
#
# cgit-docker compose example
services:
cgit:
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:
# - ./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.
|