1
0
Fork 0
This commit is contained in:
Ilya Mukhortov 2025-06-18 16:41:18 +10:00
parent 1f1bfa5ab2
commit b8cb030953
2 changed files with 8 additions and 8 deletions

View File

@ -1,7 +0,0 @@
#!/bin/sh
set -e
echo "readonly" | docker login docker.med-logic.ru --username readonly --password-stdin
docker pull docker.med-logic.ru/medicine:latest
docker run --rm --env-file .env --network medicine-network --name medicine-apply-migrations docker.med-logic.ru/medicine:latest python manage.py migrate --noinput

View File

@ -2,9 +2,16 @@
set -e set -e
echo "readonly" | docker login docker.med-logic.ru --username readonly --password-stdin
docker pull docker.med-logic.ru/medicine:latest docker pull docker.med-logic.ru/medicine:latest
(cd /root/medicine-config/medicine && (
docker run --rm \
--env-file .env \
--network medicine-network \
--name medicine-apply-migrations \
docker.med-logic.ru/medicine:latest python manage.py migrate --noinput
)
(cd /root/medicine-config/medicine && (cd /root/medicine-config/medicine &&
docker-compose stop && docker-compose stop &&
docker-compose up -d docker-compose up -d