overhauls of most service docs
All checks were successful
Podman DDNS Image / build-and-push-ddns (push) Successful in 33s
All checks were successful
Podman DDNS Image / build-and-push-ddns (push) Successful in 33s
This commit is contained in:
@@ -5,8 +5,6 @@ services:
|
||||
image: docker.gitea.com/gitea:1.24
|
||||
container_name: gitea
|
||||
environment:
|
||||
- USER_UID=1000
|
||||
- USER_GID=1000
|
||||
- GITEA__database__DB_TYPE=postgres
|
||||
- GITEA__database__HOST=postgres:5432
|
||||
- GITEA__database__NAME=gitea
|
||||
@@ -16,15 +14,13 @@ services:
|
||||
networks:
|
||||
- gitea
|
||||
volumes:
|
||||
- /home/gitea/gitea_data:/data
|
||||
- /home/gitea/gitea_data:/data:Z
|
||||
- /etc/localtime:/etc/localtime:ro
|
||||
ports:
|
||||
- "3000:3000"
|
||||
- "2222:2222"
|
||||
depends_on:
|
||||
- postgres
|
||||
security_opt:
|
||||
- label=disable
|
||||
labels:
|
||||
- "io.containers.autoupdate=registry"
|
||||
|
||||
@@ -39,9 +35,9 @@ services:
|
||||
networks:
|
||||
- gitea
|
||||
volumes:
|
||||
- /home/gitea/gitea_postgres:/var/lib/postgresql/data
|
||||
security_opt:
|
||||
- label=disable
|
||||
- /home/gitea/gitea_postgres:/var/lib/postgresql/data:Z
|
||||
labels:
|
||||
- "io.containers.autoupdate=registry"
|
||||
|
||||
networks:
|
||||
gitea:
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
|
||||
- [Gitea](#gitea)
|
||||
- [Gitea on Rootless Podman](#gitea-on-rootless-podman)
|
||||
- [A note on directories](#a-note-on-directories)
|
||||
- [Create the gitea user](#create-the-gitea-user)
|
||||
- [Convert Compose to Quadlet](#convert-compose-to-quadlet)
|
||||
- [Install Quadlets](#install-quadlets)
|
||||
@@ -15,6 +16,18 @@
|
||||
|
||||
## Gitea on Rootless Podman
|
||||
|
||||
### A note on directories
|
||||
|
||||
```bash
|
||||
RunMode: prod
|
||||
AppPath: /usr/local/bin/gitea
|
||||
WorkPath: /data/gitea
|
||||
CustomPath: /data/gitea
|
||||
ConfigFile: /data/gitea/conf/app.ini
|
||||
|
||||
Data: /data/gitea/data/
|
||||
```
|
||||
|
||||
### Create the gitea user
|
||||
|
||||
```bash
|
||||
|
||||
@@ -4,13 +4,11 @@ Requires=postgres.service
|
||||
[Container]
|
||||
AutoUpdate=registry
|
||||
ContainerName=gitea
|
||||
Environment=USER_UID=1000 USER_GID=1000 GITEA__database__DB_TYPE=postgres GITEA__database__HOST=postgres:5432 GITEA__database__NAME=gitea GITEA__database__USER=gitea GITEA__database__PASSWD=gitea
|
||||
Image=docker.gitea.com/gitea:1.24
|
||||
Network=gitea.network
|
||||
PublishPort=3000:3000
|
||||
PublishPort=2222:2222
|
||||
SecurityLabelDisable=true
|
||||
Volume=/home/gitea/gitea_data:/data
|
||||
Volume=/home/gitea/gitea_data:/data:Z
|
||||
Volume=/etc/localtime:/etc/localtime:ro
|
||||
|
||||
[Service]
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
[Container]
|
||||
AutoUpdate=registry
|
||||
ContainerName=postgres
|
||||
Environment=POSTGRES_USER=gitea POSTGRES_PASSWORD=gitea POSTGRES_DB=gitea
|
||||
Image=docker.io/library/postgres:15
|
||||
Network=gitea.network
|
||||
SecurityLabelDisable=true
|
||||
Volume=/home/gitea/gitea_postgres:/var/lib/postgresql/data
|
||||
Volume=/home/gitea/gitea_postgres:/var/lib/postgresql/data:Z
|
||||
|
||||
[Service]
|
||||
Restart=always
|
||||
|
||||
Reference in New Issue
Block a user