Gitea
This commit is contained in:
43
services/gitea/service.toml
Normal file
43
services/gitea/service.toml
Normal file
@@ -0,0 +1,43 @@
|
||||
user = "podman"
|
||||
|
||||
[service]
|
||||
name = "gitea"
|
||||
image = "docker.gitea.com/gitea:latest-rootless"
|
||||
depend = ["postgres.service"]
|
||||
|
||||
[environment]
|
||||
GITEA__database__DB_TYPE = "postgres"
|
||||
GITEA__database__HOST = "postgres:5432"
|
||||
GITEA__database__NAME = "gitea"
|
||||
GITEA__database__USER = "admin"
|
||||
GITEA__database__PASSWD = "welcome123"
|
||||
GITEA_RUNNER_REGISTRATION_TOKEN_FILE = "/run/secrets/gitea-runner-registration-token"
|
||||
GITEA_CUSTOM = "/etc/gitea/custom"
|
||||
|
||||
[[networks]]
|
||||
name = "gitea-net"
|
||||
group = "caddy"
|
||||
|
||||
[[networks]]
|
||||
name = "gitea-net"
|
||||
group = "postgres"
|
||||
|
||||
[[mounts]]
|
||||
typ = "bind"
|
||||
source = "/etc/timezone"
|
||||
target = "/etc/timezone"
|
||||
read_only = true
|
||||
|
||||
[[mounts]]
|
||||
typ = "bind"
|
||||
source = "/etc/localtime"
|
||||
target = "/etc/localtime"
|
||||
read_only = true
|
||||
|
||||
[[volumes]]
|
||||
source = "/var/containers/gitea/data"
|
||||
target = "/data"
|
||||
|
||||
[[volumes]]
|
||||
source = "/var/containers/gitea/config"
|
||||
target = "/etc/gitea"
|
||||
Reference in New Issue
Block a user