Use socket proxy for DB backups
This commit is contained in:
parent
a15c300856
commit
14de6fee84
1 changed files with 14 additions and 1 deletions
|
@ -5,7 +5,20 @@ services:
|
|||
image: ghcr.io/realorangeone/db-auto-backup:latest
|
||||
restart: unless-stopped
|
||||
volumes:
|
||||
- /var/run/docker.sock:/var/run/docker.sock:ro
|
||||
- "{{ db_backups_dir }}:/var/backups"
|
||||
environment:
|
||||
- DOCKER_HOST=tcp://docker_proxy:2375
|
||||
- HEALTHCHECKS_ID={{ db_auto_backup_healthchecks_id }}
|
||||
depends_on:
|
||||
- docker_proxy
|
||||
|
||||
docker_proxy:
|
||||
image: tecnativa/docker-socket-proxy:latest
|
||||
restart: unless-stopped
|
||||
environment:
|
||||
- POST=1
|
||||
- CONTAINERS=1
|
||||
- IMAGES=1
|
||||
- EXEC=1
|
||||
volumes:
|
||||
- /var/run/docker.sock:/var/run/docker.sock:ro
|
||||
|
|
Loading…
Reference in a new issue