Add readme

This commit is contained in:
Thomas Lovén 2021-09-05 18:00:38 +02:00
parent 8b4983f3fa
commit 6aa746023c
2 changed files with 13 additions and 0 deletions

10
README.md Normal file
View File

@ -0,0 +1,10 @@
# Git repository
You're looking at it.
This has been setup to allow SSH passthrough as described [here](https://docs.gitea.io/en-us/install-with-docker/).
The file `gitea-ssh` is the one used in `/app/gitea/gitea`. That finds the IP of the container automatically.
# [The rest of my docker-compose setup](/thomas/docker-server/)

3
gitea-ssh Executable file
View File

@ -0,0 +1,3 @@
#!/bin/sh
IP=$(docker inspect -f '{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' gitea)
ssh -o StrictHostKeyChecking=no git@$IP "SSH_ORIGINAL_COMMAND=\"$SSH_ORIGINAL_COMMAND\" $0 $@"