diff --git a/gitea/compose.yaml b/gitea/compose.yaml index 4bf52a8..5bc7b59 100644 --- a/gitea/compose.yaml +++ b/gitea/compose.yaml @@ -33,8 +33,6 @@ services: - /etc/timezone:/etc/timezone:ro - /etc/localtime:/etc/localtime:ro environment: - - USER_UID=$PUID - - USER_GID=$PGID - POSTGRES_HOST=db - GITEA__database__DB_TYPE=postgres - GITEA__database__HOST=db:5432 @@ -48,6 +46,7 @@ services: - db volumes: + config: data: db: sites: diff --git a/gitea/first_start.sh b/gitea/first_start.sh index b2a97d8..0ae878d 100755 --- a/gitea/first_start.sh +++ b/gitea/first_start.sh @@ -1,6 +1,6 @@ #!/bin/bash -e -[ "$EUID" != 0 ] && {echo "This script need to run as root" >&2; exit 1;} +[ "$EUID" != 0 ] && { echo "This script need to run as root" >&2; exit 1; } docker-compose up --no-start --build chown -R 1000:1000 /var/lib/docker/volumes/gitea_*