From 0e7410f10c9b7e9b79f6810a1fbcb7ab50d0f4d9 Mon Sep 17 00:00:00 2001 From: Thomas E Lackey Date: Mon, 27 Mar 2023 21:29:40 -0500 Subject: [PATCH] Support passing container options. --- gitea/docker-compose.yml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/gitea/docker-compose.yml b/gitea/docker-compose.yml index e62f26d..d120d28 100644 --- a/gitea/docker-compose.yml +++ b/gitea/docker-compose.yml @@ -50,15 +50,19 @@ services: - ./postgres:/var/lib/postgresql/data runner: - image: cerc/act-runner:local + image: cerc/act_runner:local restart: always environment: - GITEA_INSTANCE_INSECURE=1 - GITEA_RUNNER_REGISTRATION_TOKEN=eMdEwIzSo87nBh0UFWZlbp308j6TNWr3WhWxQqIc - - GITEA_INSTANCE_URL=http://host.docker.internal:3000 - - GITEA_RUNNER_LABELS=ubuntu-latest:docker://cerc/act-runner-task-executor:local,ubuntu-22.04:docker://cerc/act-runner-task-executor:local + - GITEA_INSTANCE_URL=http://gitea.local:3000 + - GITEA_RUNNER_LABELS=ubuntu-latest:docker://cerc/act_runner-task-executor:local,ubuntu-22.04:docker://cerc/act_runner-task-executor:local + - GITEA_RUNNER_DOCKER_CONTAINER_OPTIONS=--add-host=gitea.local:host-gateway + - GITEA_RUNNER_DOCKER_PRIVILEGED=true networks: - gitea + extra_hosts: + - "gitea.local:host-gateway" volumes: - /var/run/docker.sock:/var/run/docker.sock - ./act_runner:/data