1
0
Fork 0
This commit is contained in:
Ilya Mukhortov 2023-08-30 10:40:12 +10:00
parent bf14a037b4
commit 164d1cbc7f
3 changed files with 17 additions and 0 deletions

BIN
backups/medicine.sql.zip Normal file

Binary file not shown.

View File

@ -0,0 +1,16 @@
set -e
echo "readonly" | docker login docker.med-logic.ru --username readonly --password-stdin
docker pull docker.med-logic.ru/medicine-nginx:latest
docker pull docker.med-logic.ru/medicine-app:latest
unzip ../backups/medicine.sql.zip ../volumes/files/
docker exec -i medicine-stack-postgres psql -U postgres -d medicine -f /files/medicine.sql
cd /root/medicine-config/medicine
if [ ! -f .env ]
then
cp env.sample .env
fi

View File

@ -9,3 +9,4 @@ docker-compose exec postgres psql -c 'CREATE DATABASE medicine_remd' --username=
cd /root/medicine-config/medicine-remd cd /root/medicine-config/medicine-remd
docker-compose run --rm medicine-remd python manage.py post_install docker-compose run --rm medicine-remd python manage.py post_install
docker-compose up -d