From ab57052be6cc32a7cec4929f7a2282a835c98ec0 Mon Sep 17 00:00:00 2001 From: Alex Matsuev Date: Sat, 22 Nov 2025 16:33:07 +0300 Subject: [PATCH] Initial commit --- compose.yaml | 52 ++++++++++++++++++++++++++++++++++++++++++++++++++++ config.yaml | 0 2 files changed, 52 insertions(+) create mode 100644 compose.yaml create mode 100644 config.yaml diff --git a/compose.yaml b/compose.yaml new file mode 100644 index 0000000..6efed9c --- /dev/null +++ b/compose.yaml @@ -0,0 +1,52 @@ +services: + gitea: + image: docker.gitea.com/gitea:1.25.1 + container_name: gitea + environment: + - USER_UID=1000 + - USER_GID=1000 + restart: always + networks: + - gitea + volumes: + - gitea-data:/data + - /etc/timezone:/etc/timezone:ro + - /etc/localtime:/etc/localtime:ro + healthcheck: + test: [ "CMD", "curl", "-f", "http://gitea:3000" ] + interval: 10s + retries: 3 + start_period: 30s + timeout: 10s + ports: + - "127.0.0.1:3000:3000" + - "127.0.0.1:222:22" + + runner: + image: docker.io/gitea/act_runner:nightly + environment: + CONFIG_FILE: /config.yaml + GITEA_INSTANCE_URL: "http://gitea:3000" + GITEA_RUNNER_REGISTRATION_TOKEN: "" + GITEA_RUNNER_NAME: "test_runner" + GITEA_RUNNER_LABELS: "" + GITEA_RUNNER_EPHEMERAL: "1" + depends_on: + gitea: + condition: service_healthy + restart: true + networks: + - gitea + volumes: + - ./config.yaml:/config.yaml + - runner-data:/data + - /var/run/docker.sock:/var/run/docker.sock + +volumes: + gitea-data: + runner-data: + + +networks: + gitea: + external: false diff --git a/config.yaml b/config.yaml new file mode 100644 index 0000000..e69de29