diff --git a/docker-compose.yaml b/docker-compose.yaml index 2261be3..4c52cc4 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -12,6 +12,7 @@ services: - USER_UID=895 - USER_GID=895 - GITEA__server__ROOT_URL=https://blacka.com/git + - GITEA__service__REQUIRE_MANUAL_CONFIG=true restart: always networks: - gitea diff --git a/setup.sh b/setup.sh index 9d9d54b..f240869 100755 --- a/setup.sh +++ b/setup.sh @@ -13,6 +13,7 @@ if ! id -u "$HOST_GIT_UID" >/dev/null 2>&1; then fi install -d "$GITEA_HOME/data" +install -o $HOST_GIT_USER -g $HOST_GIT_GROUP -m 0700 -d "$GITEA_HOME/.ssh" cat <<"EOF" | sudo tee $GITEA_HOME/docker-shell #!/bin/sh