fix(center): wire act_runner into compose network
This commit is contained in:
@@ -83,19 +83,25 @@ services:
|
|||||||
image: gitea/act_runner:0.6.1
|
image: gitea/act_runner:0.6.1
|
||||||
container_name: juwan-runner
|
container_name: juwan-runner
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
working_dir: /data
|
||||||
environment:
|
environment:
|
||||||
GITEA_INSTANCE_URL: http://gitea:3000
|
GITEA_INSTANCE_URL: http://gitea:3000
|
||||||
GITEA_RUNNER_REGISTRATION_TOKEN: ${RUNNER_TOKEN}
|
GITEA_RUNNER_REGISTRATION_TOKEN: ${RUNNER_TOKEN}
|
||||||
GITEA_RUNNER_NAME: juwan-center
|
GITEA_RUNNER_NAME: juwan-center
|
||||||
GITEA_RUNNER_LABELS: ubuntu-latest:docker://docker.gitea.com/runner-images:ubuntu-latest-slim
|
GITEA_RUNNER_LABELS: ubuntu-latest:docker://docker.gitea.com/runner-images:ubuntu-latest
|
||||||
CONFIG_FILE: /data/config.yaml
|
CONFIG_FILE: /data/config.yaml
|
||||||
volumes:
|
volumes:
|
||||||
|
- ./runner/config.yaml:/data/config.yaml:ro
|
||||||
- runner-data:/data
|
- runner-data:/data
|
||||||
- /var/run/docker.sock:/var/run/docker.sock
|
- /var/run/docker.sock:/var/run/docker.sock
|
||||||
depends_on:
|
depends_on:
|
||||||
gitea:
|
gitea:
|
||||||
condition: service_healthy
|
condition: service_healthy
|
||||||
|
|
||||||
|
networks:
|
||||||
|
default:
|
||||||
|
name: juwan-center
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
caddy-data:
|
caddy-data:
|
||||||
name: juwan-caddy-data
|
name: juwan-caddy-data
|
||||||
|
|||||||
@@ -0,0 +1,6 @@
|
|||||||
|
runner:
|
||||||
|
capacity: 1
|
||||||
|
labels:
|
||||||
|
- ubuntu-latest:docker://docker.gitea.com/runner-images:ubuntu-latest
|
||||||
|
container:
|
||||||
|
network: juwan-center
|
||||||
Reference in New Issue
Block a user