mirror of
https://github.com/RealOrangeOne/infrastructure.git
synced 2026-07-17 16:35:58 +00:00
Persist runner DIND storage (and do monthly cleanup)
This commit is contained in:
parent
37858b5b02
commit
4a62166c94
2 changed files with 10 additions and 0 deletions
|
|
@ -18,6 +18,9 @@ services:
|
|||
image: docker:dind
|
||||
environment:
|
||||
- TZ={{ timezone }}
|
||||
- DOCKER_HOST=tcp://0.0.0.0:2375
|
||||
volumes:
|
||||
- /mnt/ci-runner-docker:/var/lib/docker
|
||||
privileged: true
|
||||
restart: unless-stopped
|
||||
command: dockerd -H tcp://0.0.0.0:2375 --tls=false
|
||||
|
|
|
|||
|
|
@ -21,3 +21,10 @@
|
|||
owner: "{{ docker_user.name }}"
|
||||
validate: docker compose -f %s config
|
||||
notify: restart forgejo-runner
|
||||
|
||||
- name: Clean up runner docker containers
|
||||
cron:
|
||||
name: clean up runner docker containers
|
||||
special_time: monthly
|
||||
job: docker compose -f /opt/forgejo-runner/docker-compose.yml exec dind docker system prune -af --volumes
|
||||
user: "{{ docker_user.name }}"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue