Docker compose, cgit, uwsgi, proxy nginx
Install docker-compose (virtualenv can ne used as well)
- Update env.config file to meet your requirements:
# Data volume root dir
export VOLUME_PATH=/srv/cgit-data
# # will be accessable with https://WEB_SERVER_NAME
export WEB_SERVER_NAME=sandbox.example.com
export WEB_SERVER_PORT=80
Please check ./manage.sh for help
Usage: ./manage.sh ACTION
ACTION:
init [Optional] generate config files,
build required images
status get containers status
debug run docker-compose in foreground
start start all containers in background
stop stop all containers
- Get access to cgit server with address:
https://WEB_SERVER_NAME:WEB_SERVER_PORT
- Put your git repos to
VOLUME_PATH
- you can customize cgit static content from
.nginx/cgit-static
- You need to have sudo for
mkdir
andchown
commands, since container runs undercgit
user and stores data onVOLUME_PATH