From 9734000d1070109daf8e79e832e2cda1bb273811 Mon Sep 17 00:00:00 2001 From: lamtruong28 Date: Fri, 7 Aug 2026 23:53:15 +0700 Subject: [PATCH] Add all files --- .env | 4 ++++ .gitignore | 1 + config.yaml | 0 docker-compose.yaml | 15 +++++++++++++++ 4 files changed, 20 insertions(+) create mode 100644 .env create mode 100644 .gitignore create mode 100644 config.yaml create mode 100644 docker-compose.yaml diff --git a/.env b/.env new file mode 100644 index 0000000..45eb791 --- /dev/null +++ b/.env @@ -0,0 +1,4 @@ +INSTANCE_URL = https://gitea.digitoolsolutions.synology.me +REGISTRATION_TOKEN = +# RUNNER_NAME = +# RUNNER_LABELS = \ No newline at end of file diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..07f43b8 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +data/* \ No newline at end of file diff --git a/config.yaml b/config.yaml new file mode 100644 index 0000000..e69de29 diff --git a/docker-compose.yaml b/docker-compose.yaml new file mode 100644 index 0000000..24710df --- /dev/null +++ b/docker-compose.yaml @@ -0,0 +1,15 @@ +services: + runner: + image: docker.io/gitea/runner:latest + container_name: gitea-runner + restart: unless-stopped + environment: + CONFIG_FILE: /config.yaml + GITEA_INSTANCE_URL: "${INSTANCE_URL}" + GITEA_RUNNER_REGISTRATION_TOKEN: "${REGISTRATION_TOKEN}" + GITEA_RUNNER_NAME: "${RUNNER_NAME}" + GITEA_RUNNER_LABELS: "${RUNNER_LABELS}" + volumes: + - ./config.yaml:/config.yaml + - ./data:/data + - /var/run/docker.sock:/var/run/docker.sock \ No newline at end of file