~dricottone/container-images

ref: a7203db0a58e4c44171294e94198b73681f6312d container-images/srht-git-api/README.md -rw-r--r-- 737 bytes
a7203db0Dominic Ricottone Continuation of Postfix redesign 1 year, 4 months ago

#srht-git-api

#Build and Deploy

make image

#Tags

  • latest

#Use

Deploy the API server for a sr.ht system's git service.

Used by proxying from nginx(8). The below location should be added to the server configuration for git.example.com.

location /query {
    proxy_pass http://localhost:5101;
}

The container needs to be reachable from nginx(8) on port 5101. Consider either using a pod or creating a bridge network. It also needs to have the git repositories mounted to /var/lib/git.

$conman run --detach --name srht-git-api --restart always \
    --mount type=bind,src=/host/path/to/git/repos,dst=/var/lib/git,z \
    registry.intra.dominic-ricottone.com/srht-git-api:latest