user = "podman" capabilities = ["NET_BIND_SERVICE", "DAC_OVERRIDE"] [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/localtime" target = "/etc/localtime" read_only = true [[volumes]] source = "/var/containers/gitea/data" target = "/data" [[volumes]] source = "/var/containers/gitea/config" target = "/etc/gitea"