fix(gitea): script + compose volume

This commit is contained in:
AngeD 2023-12-23 13:53:57 +01:00
parent 94d50fb7c3
commit fad2cac15b
2 changed files with 2 additions and 3 deletions

View File

@ -33,8 +33,6 @@ services:
- /etc/timezone:/etc/timezone:ro - /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro - /etc/localtime:/etc/localtime:ro
environment: environment:
- USER_UID=$PUID
- USER_GID=$PGID
- POSTGRES_HOST=db - POSTGRES_HOST=db
- GITEA__database__DB_TYPE=postgres - GITEA__database__DB_TYPE=postgres
- GITEA__database__HOST=db:5432 - GITEA__database__HOST=db:5432
@ -48,6 +46,7 @@ services:
- db - db
volumes: volumes:
config:
data: data:
db: db:
sites: sites:

View File

@ -1,6 +1,6 @@
#!/bin/bash -e #!/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 docker-compose up --no-start --build
chown -R 1000:1000 /var/lib/docker/volumes/gitea_* chown -R 1000:1000 /var/lib/docker/volumes/gitea_*