init
This commit is contained in:
commit
e1bd002ff8
2 files changed
+27
No files matched your search
Whitespace-only changes.
@@ -0,0 +1,27 @@
|
|||||||
|
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"
|
||||||
|
restart: unless-stopped
|
||||||
|
volumes:
|
||||||
|
- /srv/gitea:/var/lib/gitea
|
||||||
|
- ./config:/etc/gitea
|
||||||
|
- /etc/timezone:/etc/timezone:ro
|
||||||
|
- /etc/localtime:/etc/localtime:ro
|
||||||
|
ports:
|
||||||
|
- "7522:22"
|
||||||
|
expose:
|
||||||
|
- 3000
|
||||||
|
|
||||||
Reference in new issue
Block a user