configurate docker and docker compose

This commit is contained in:
behruz-dev
2025-07-30 15:09:31 +05:00
parent 54f982a537
commit 180fa70758
13 changed files with 244 additions and 20 deletions

View File

@@ -0,0 +1,5 @@
file=/tmp/db-$(/usr/bin/date +\%Y-%m-%d-%H:%M:%S).sql
container=postgres
/usr/bin/docker container exec $container pg_dump -U postgres django > $file
mc cp $file b2/buket-name
rm $file