2023-06-05 08:46:15 +00:00
|
|
|
### Running `act_runner` using `docker-compose`
|
|
|
|
|
|
|
|
```yml
|
|
|
|
...
|
|
|
|
gitea:
|
|
|
|
image: gitea/gitea
|
|
|
|
...
|
|
|
|
|
|
|
|
runner:
|
|
|
|
image: gitea/act_runner
|
|
|
|
restart: always
|
|
|
|
depends_on:
|
|
|
|
- gitea
|
|
|
|
volumes:
|
|
|
|
- ./data/act_runner:/data
|
|
|
|
- /var/run/docker.sock:/var/run/docker.sock
|
|
|
|
environment:
|
|
|
|
- GITEA_INSTANCE_URL=<instance url>
|
2023-09-04 04:12:07 +00:00
|
|
|
# When using Docker Secrets, it's also possible to use
|
|
|
|
# GITEA_RUNNER_REGISTRATION_TOKEN_FILE to pass the location.
|
|
|
|
# The env var takes precedence
|
2023-06-05 08:46:15 +00:00
|
|
|
- GITEA_RUNNER_REGISTRATION_TOKEN=<registration token>
|
|
|
|
```
|