infrastructure/ansible/roles/db_auto_backup/files/docker-compose.yml
Jake Howard b33e19e152
Remove unnecessary extra variable definitions
The world could do with a bit less YAML!
2023-12-14 22:03:23 +00:00

26 lines
617 B
YAML

version: "2.3"
services:
backup:
image: ghcr.io/realorangeone/db-auto-backup:latest
restart: unless-stopped
volumes:
- "{{ db_backups_dir }}:/var/backups"
environment:
- DOCKER_HOST=tcp://docker_proxy:2375
- HEALTHCHECKS_ID={{ vault_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
logging:
driver: none