pass
This commit is contained in:
parent
bf14a037b4
commit
164d1cbc7f
Binary file not shown.
|
|
@ -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
|
||||||
|
|
@ -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
|
||||||
Loading…
Reference in New Issue