switch to rootful
This commit is contained in:
1 parent
76a554c0d9
commit
03cf56591e
1 file changed
+5
-15
+5
-15
@@ -1,26 +1,16 @@
|
||||
services:
|
||||
init-permissions:
|
||||
image: alpine:latest
|
||||
user: root
|
||||
volumes:
|
||||
- /srv/gitea:/var/lib/gitea
|
||||
- ./config:/etc/gitea
|
||||
command: >
|
||||
sh -c "chown -R 987:985 /etc/gitea && chmod -R 775 /etc/gitea"
|
||||
server:
|
||||
depends_on:
|
||||
init-permissions:
|
||||
condition: service_completed_successfully
|
||||
image: docker.gitea.com/gitea:1.27.2-rootless
|
||||
container_name: gitea
|
||||
user: "987:985"
|
||||
image: gitea/gitea:1.27.2
|
||||
restart: unless-stopped
|
||||
volumes:
|
||||
- /srv/gitea:/var/lib/gitea
|
||||
- /srv/gitea:/data
|
||||
- ./config:/etc/gitea
|
||||
- /etc/timezone:/etc/timezone:ro
|
||||
- /etc/localtime:/etc/localtime:ro
|
||||
environment:
|
||||
- USER_UID=987
|
||||
- USER_GID=985
|
||||
- GITEA__database__DB_TYPE=sqlite3
|
||||
- GITEA__server__RUN_USER=git
|
||||
- GITEA__server__DOMAIN=gitea.jederik.net
|
||||
- GITEA__server__SSH_PORT=7522
|
||||
|
||||
Reference in new issue
Block a user