Update
This commit is contained in:
@@ -1,20 +1,22 @@
|
||||
services:
|
||||
|
||||
# when you want to rebuild the runner (this creates a new runner) run:
|
||||
# sudo docker compose up --build -d
|
||||
gitea-runner-dotnet:
|
||||
container_name: "gitea-runner-generic"
|
||||
restart: unless-stopped
|
||||
runner:
|
||||
#container_name: "gitea-runner-generic" # this can't be used when the runner is using replicas
|
||||
deploy:
|
||||
mode: replicated
|
||||
replicas: 3 # number of instances of the same runner
|
||||
restart: always
|
||||
build:
|
||||
context: .
|
||||
env_file:
|
||||
- path: .env
|
||||
required: true
|
||||
volumes:
|
||||
- /var/run/docker.sock:/var/run/docker.sock:ro
|
||||
- /usr/bin/docker:/usr/bin/docker:ro
|
||||
#- ./config:/config
|
||||
- ./data:$HOME/.cache
|
||||
- ./configs/NuGet:/root/.nuget/NuGet
|
||||
environment:
|
||||
GITEA_INSTANCE_URL: "https://gitea.sandev.io"
|
||||
GITEA_RUNNER_REGISTRATION_TOKEN: ${GITEA_REG_TOKEN}
|
||||
GITEA_RUNNER_NAME: "gitea-runner-generic"
|
||||
EPHERMAL: true
|
||||
GITEA_INSTANCE_URL: "http://gitea.int.boger.local"
|
||||
GITEA_RUNNER_REGISTRATION_TOKEN: "${GITEA_INSTANCE_LEVEL_TOKEN}"
|
||||
GITEA_RUNNER_LABELS: "ubuntu-2204,generic,node-js,golang"
|
||||
Reference in New Issue
Block a user