From a25c3d551a997558422f59234acc357c17e65003 Mon Sep 17 00:00:00 2001 From: Pauline Srifi Date: Thu, 8 Feb 2024 13:54:52 +0100 Subject: [PATCH] debut 08-02 --- .gitignore | 2 ++ config.yaml | 7 +++++++ docker-compose.yml | 38 ++++++++++++++++++++++++++++++++++++++ 3 files changed, 47 insertions(+) create mode 100644 .gitignore create mode 100644 config.yaml create mode 100644 docker-compose.yml diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..21a4945 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +/gitea/ +/gitea/* diff --git a/config.yaml b/config.yaml new file mode 100644 index 0000000..cf32d67 --- /dev/null +++ b/config.yaml @@ -0,0 +1,7 @@ +container: + # Specifies the network to which the container will connect. + # Could be host, bridge or the name of a custom network. + # If it's empty, act_runner will create a network automatically. + network: "host" + volumes: + - /var/run/docker.sock:/var/run/docker.sock \ No newline at end of file diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..c61853a --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,38 @@ +version: '3' + +networks: + gitea: + external: false + +services: + server: + image: 'gitea/gitea:1.21' + container_name: gitea + environment: + - USER_UID=1000 + - USER_GID=1000 + restart: always + networks: + - gitea + volumes: + - './gitea:/data' + - '/etc/timezone:/etc/timezone:ro' + - '/etc/localtime:/etc/localtime:ro' + ports: + - '3000:3000' + - '222:22' + + runner: + image: 'gitea/act_runner:0.2.6' + container_name: my_runner + environment: + - 'GITEA_INSTANCE_URL=http://server:3000' + - 'GITEA_RUNNER_REGISTRATION_TOKEN=k5G4jLl4ZKa2pqVJ4pLCOIbkV6m7T6hhC5ZOMCJr' + - CONFIG_FILE=/config.yaml + volumes: + - '/var/run/docker.sock:/var/run/docker.sock' + - './config.yaml:/config.yaml' + networks: + - gitea + depends_on: + - server