You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Robin THONI 74505f0008 removed useless env values 8 months ago
gitea init 8 months ago
postgresql init 8 months ago
.gitignore init 8 months ago
README.md fixed readme user id 8 months ago
docker-compose.yml init 8 months ago
env removed useless env values 8 months ago

README.md

Configure real git user

Create git user:

groupadd -g 1000 git
useradd -g git -u 1000 git -d "$(pwd)"/data/gitea/data/git
usermod -a -G docker git

/app/gitea/gitea: (chmod +x)

#!/bin/sh
docker exec -i -u git -e SSH_ORIGINAL_COMMAND="${SSH_ORIGINAL_COMMAND}" gitea-gitea $0 "$@"

/etc/ssh/sshd_config:

Match user git
  PasswordAuthentication no