mirror of
https://gitea.com/gitea/runner.git
synced 2026-11-09 00:30:28 +00:00
Add DIND docker-compose example (#365)
Co-authored-by: Nikita Vilunov <[email protected]> Reviewed-on: https://gitea.com/gitea/act_runner/pulls/365 Reviewed-by: Lunny Xiao <[email protected]> Co-authored-by: vilunov <[email protected]> Co-committed-by: vilunov <[email protected]>
This commit is contained in:
1 parent
990db1bfc0
commit
4c35288175
1 file changed
+24
-1
@@ -18,6 +18,29 @@
|
|||||||
- GITEA_INSTANCE_URL=<instance url>
|
- GITEA_INSTANCE_URL=<instance url>
|
||||||
# When using Docker Secrets, it's also possible to use
|
# When using Docker Secrets, it's also possible to use
|
||||||
# GITEA_RUNNER_REGISTRATION_TOKEN_FILE to pass the location.
|
# GITEA_RUNNER_REGISTRATION_TOKEN_FILE to pass the location.
|
||||||
# The env var takes precedence
|
# The env var takes precedence.
|
||||||
|
# Needed only for the first start.
|
||||||
|
- GITEA_RUNNER_REGISTRATION_TOKEN=<registration token>
|
||||||
|
```
|
||||||
|
|
||||||
|
### Running `act_runner` using Docker-in-Docker (DIND)
|
||||||
|
|
||||||
|
```yml
|
||||||
|
...
|
||||||
|
runner:
|
||||||
|
image: gitea/act_runner:latest-dind-rootless
|
||||||
|
restart: always
|
||||||
|
privileged: true
|
||||||
|
depends_on:
|
||||||
|
- gitea
|
||||||
|
volumes:
|
||||||
|
- ./data/act_runner:/data
|
||||||
|
environment:
|
||||||
|
- GITEA_INSTANCE_URL=<instance url>
|
||||||
|
- DOCKER_HOST=unix:///var/run/user/1000/docker.sock
|
||||||
|
# When using Docker Secrets, it's also possible to use
|
||||||
|
# GITEA_RUNNER_REGISTRATION_TOKEN_FILE to pass the location.
|
||||||
|
# The env var takes precedence.
|
||||||
|
# Needed only for the first start.
|
||||||
- GITEA_RUNNER_REGISTRATION_TOKEN=<registration token>
|
- GITEA_RUNNER_REGISTRATION_TOKEN=<registration token>
|
||||||
```
|
```
|
||||||
Reference in new issue
Block a user