homeserver/docker-compose/routeros-config-export/docker-compose.yml
Michael Grote 2b4a3384cd
All checks were successful
ansible-lint / gitleaks (pull_request) Successful in 7s
ansible-lint / Ansible Lint (pull_request) Successful in 33s
ff
2025-01-03 14:35:47 +01:00

30 lines
1 KiB
YAML

services:
routeros-config-export:
container_name: routeros-config-export
restart: unless-stopped
pull_policy: missing
deploy:
resources:
limits:
cpus: "2"
memory: "512M"
security_opt:
- no-new-privileges=true
image: "registry.mgrote.net/routeros-config-export:latest"
volumes:
- ./key_rb5009:/key_rb5009:ro
- ./key_hex:/key_hex:ro
- ./key_crs305:/key_crs305:ro
- ./deploy_token:/deploy_token:ro
environment:
DEVICES: |-
rb5009.mgrote.net,routeros-config-backup,/key_rb5009
hex.mgrote.net,routeros-config-backup,/key_hex
crs305.mgrote.net,routeros-config-backup,/key_crs305
GIT_REPO_BRANCH: "master"
GIT_REPO_URL: "ssh://gitea@forgejo.mgrote.net:2222/mg/routeros-configs.git"
GIT_REPO_DEPLOY_KEY: "/deploy_token"
GIT_USERNAME: oxidized-selfmade
GIT_USER_MAIL: michael.grote@posteo.de
GIT_REPO_REMOTE_NAME: origin
INTERVAL: 600 # in sekunden