diff --git a/gitea/config.yaml b/gitea/config.yaml new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/gitea/config.yaml @@ -0,0 +1 @@ + diff --git a/gitea/gitea-config.volume b/gitea/gitea-config.volume new file mode 100644 index 0000000..b8f5bef --- /dev/null +++ b/gitea/gitea-config.volume @@ -0,0 +1,3 @@ +# gitea-config.volume +[Volume] +Driver=local diff --git a/gitea/gitea-data.volume b/gitea/gitea-data.volume new file mode 100644 index 0000000..d31fb8e --- /dev/null +++ b/gitea/gitea-data.volume @@ -0,0 +1,3 @@ +# gitea-data.volume +[Volume] +Driver=local diff --git a/gitea/gitea-runner.container b/gitea/gitea-runner.container new file mode 100644 index 0000000..1a0214b --- /dev/null +++ b/gitea/gitea-runner.container @@ -0,0 +1,16 @@ +# runner.container +[Container] +Image=docker.io/gitea/act_runner:nightly +AutoUpdate=registry +Volume=./config.yaml:/config.yaml:Z +Volume=gitea-data.volume:/var/lib/gitea +Volume=gitea-config.volume:/etc/gitea +Volume=/var/run/user/1000/podman/podman.sock:/var/run/docker.sock +PodmanArgs=--privileged +EnvironmentFile=./gitea-env.env + +[Service] +Restart=always + +[Install] +WantedBy=default.target diff --git a/gitea/gitea-server.container b/gitea/gitea-server.container new file mode 100644 index 0000000..3c4e07a --- /dev/null +++ b/gitea/gitea-server.container @@ -0,0 +1,15 @@ +# server.container +[Container] +Image=docker.io/gitea/gitea:latest-rootless +PublishPort=3000:3000 +PublishPort=2222:2222 +AutoUpdate=registry +Volume=gitea-data.volume:/var/lib/gitea +Volume=gitea-config.volume:/etc/gitea +Volume=/etc/localtime:/etc/localtime:ro + +[Service] +Restart=always + +[Install] +WantedBy=default.target