feat: add prefect worker for PostgreSQL backups
This commit is contained in:
@@ -70,6 +70,23 @@ services:
|
|||||||
command: prefect server services start
|
command: prefect server services start
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
|
||||||
|
# === PREFECT WORKER - PostgreSQL Backup ===
|
||||||
|
prefect-worker-pg-backup:
|
||||||
|
image: gitea.arnodo.fr/damien/prefect-worker-pg-backup:latest
|
||||||
|
container_name: prefect-worker-pg-backup
|
||||||
|
network_mode: service:tailscale
|
||||||
|
depends_on:
|
||||||
|
- prefect-server
|
||||||
|
environment:
|
||||||
|
# Prefect API connection (via Tailscale)
|
||||||
|
- PREFECT_API_URL=http://localhost:4200/api
|
||||||
|
# S3 credentials for Garage
|
||||||
|
- AWS_ACCESS_KEY_ID=${S3_ACCESS_KEY}
|
||||||
|
- AWS_SECRET_ACCESS_KEY=${S3_SECRET_KEY}
|
||||||
|
- AWS_ENDPOINT_URL=${S3_ENDPOINT_URL}
|
||||||
|
command: prefect worker start --pool pg-backup-pool --type process
|
||||||
|
restart: unless-stopped
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
tailscale-state:
|
tailscale-state:
|
||||||
redis-data:
|
redis-data:
|
||||||
|
|||||||
Reference in New Issue
Block a user