Skip to content

Commit

Permalink
fix backup file permission
Browse files Browse the repository at this point in the history
  • Loading branch information
fono09 committed Oct 1, 2023
1 parent 5bbb40e commit fd4f18c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ services:

db_backup:
<<: *db
command: sh -c "pg_basebackup -F t -D /backups/`date +%Y%m%d` -z -h db -U postgres -P"
command: sh -c "pg_basebackup -F t -D /backups/`date +%Y%m%d` -z -h db -U postgres -P && chown 1000:1000 -R /backups/*"
healthcheck:
test: ""
volumes:
Expand Down

0 comments on commit fd4f18c

Please sign in to comment.