Set up Forgejo role and migrate Gitea to Forgejo 11
This commit is contained in:
parent
1c9721f0b2
commit
300358fa98
10 changed files with 319 additions and 19 deletions
|
|
@ -0,0 +1,18 @@
|
|||
# vim: ft=systemd
|
||||
[Container]
|
||||
Image=docker.io/postgres:{{ forgejo_postgres_version }}-alpine
|
||||
Pod=forgejo.pod
|
||||
|
||||
Environment=POSTGRES_USER=gitea POSTGRES_PASSWORD=gitea POSTGRES_DB=gitea
|
||||
|
||||
HealthCmd=["pg_isready","-U","gitea"]
|
||||
HealthInterval=30s
|
||||
HealthRetries=3
|
||||
HealthStartPeriod=30s
|
||||
HealthTimeout=5s
|
||||
Notify=Healthy
|
||||
|
||||
Volume={{ forgejo_postgres_dir }}:/var/lib/postgresql/data
|
||||
|
||||
[Service]
|
||||
Restart=always
|
||||
Loading…
Add table
Add a link
Reference in a new issue