From 95471c9acaa3529ad5ba8176800df0d6cfc25947 Mon Sep 17 00:00:00 2001 From: syui Date: Tue, 21 May 2024 11:09:09 +0900 Subject: [PATCH] fix --- .gitignore | 1 + compose.yml | 37 +++++++++++++++++++++++++++++++++++++ 2 files changed, 38 insertions(+) create mode 100644 .gitignore create mode 100644 compose.yml diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..c79d3c1 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +*.env* diff --git a/compose.yml b/compose.yml new file mode 100644 index 0000000..53c9e0f --- /dev/null +++ b/compose.yml @@ -0,0 +1,37 @@ +networks: + gitea: + external: false + +services: + server: + image: gitea/gitea + container_name: gitea + environment: + - USER_UID=1000 + - USER_GID=1000 + restart: always + networks: + - gitea + volumes: + - ./data:/data + ports: + - "30001:3000" + - "22001:22" + env_file: .env.local + + runner: + build: + context: ./act_runner + dockerfile: Dockerfile + container_name: runner + restart: always + volumes: + - ./runner_data:/data + - /var/run/docker.sock:/var/run/docker.sock + environment: + GITEA_INSTANCE_URL: https://git.syui.ai + GITEA_RUNNER_REGISTRATION_TOKEN: xxx + DOCKER_HOST: unix:///var/run/docker.sock + GITEA_RUNNER_NAME: open-runner + GITEA_RUNNER_LABELS: ubuntu-latest,ubuntu-22.04,archlinux + network_mode: host