name: ${_STACK} networks: net: name: ${_NET} external: true services: cgit: container_name: ${_CONTAINER} image: ratdad/cgit:latest env_file: - .cgit.env - .env networks: - net expose: - 80 volumes: # TODO: Create env overrides in docker-cgit for css/config file locations as well as the git root. - ${_CSS_FILE:-./config/cgit.css}:/srv/www/htdocs/cgit/cgit.css - ${_CONFIG_FILE:-./config/cgitrc}:/etc/cgitrc - ${_GIT_ROOT:-./srv/git/}:/srv/git # mount the directory you use for your git server