fly wa
This commit is contained in:
@@ -232,6 +232,37 @@ services:
|
||||
networks:
|
||||
- defrag-network
|
||||
|
||||
flyway:
|
||||
image: flyway/flyway:latest
|
||||
container_name: flyway
|
||||
volumes:
|
||||
- ./sql/migration:/flyway/sql:ro
|
||||
environment:
|
||||
FLYWAY_URL: jdbc:postgresql://192.168.1.159:5432/disk_reorganizer_db
|
||||
FLYWAY_USER: disk_reorg_user
|
||||
FLYWAY_PASSWORD: heel-goed-wachtwoord
|
||||
FLYWAY_SCHEMAS: public
|
||||
FLYWAY_LOCATIONS: filesystem:./sql
|
||||
FLYWAY_CONNECT_RETRIES: "60"
|
||||
command: migrate
|
||||
restart: "no"
|
||||
|
||||
pg_backup:
|
||||
image: postgres:16
|
||||
container_name: pg_backup
|
||||
environment:
|
||||
PGPASSWORD: heel-goed-wachtwoord
|
||||
volumes:
|
||||
- ./:/backup
|
||||
command:
|
||||
- bash
|
||||
- -lc
|
||||
- >
|
||||
pg_dump -h 192.168.1.159 -p 5432 -U disk_reorg_user -d disk_reorganizer_db
|
||||
--format=custom --no-owner --no-privileges
|
||||
-f /backup/backup_$(date +%F_%H%M)_disk_reorganizer_db.dump
|
||||
restart: "no"
|
||||
|
||||
networks:
|
||||
defrag-network:
|
||||
driver: bridge
|
||||
|
||||
Reference in New Issue
Block a user