20 lines
409 B
YAML
20 lines
409 B
YAML
version: "3.9"
|
|
|
|
services:
|
|
pgbackup:
|
|
image: postgres:16
|
|
container_name: postgres-backup
|
|
restart: unless-stopped
|
|
|
|
environment:
|
|
PGPASSWORD: ${POSTGRES_PASSWORD}
|
|
|
|
volumes:
|
|
- ../postgres/backup:/backup
|
|
- ./backup.sh:/backup.sh
|
|
|
|
entrypoint: [ "bash", "-c", "echo 'Starting backup scheduler'; while true; do /backup.sh; sleep 86400; done" ]
|
|
|
|
networks:
|
|
- default
|