1
0
Fork 0
This commit is contained in:
Ilya Mukhortov 2026-01-14 11:40:16 +10:00
parent d149c61c02
commit b8a72e00c3
2 changed files with 5 additions and 3 deletions

View File

@ -1,14 +1,16 @@
set -e
NETWORK_NAME=medicine-network
if ! docker network inspect ${NETWORK_NAME} >/dev/null 2>&1; then
docker network create ${NETWORK_NAME}
fi
echo "readonly" | docker login docker.med-logic.ru --username readonly --password-stdin
docker compose stop
docker pull docker.med-logic.ru/medicine-dashboard:latest
docker tag docker.med-logic.ru/medicine-dashboard:latest medicine-dashboard:latest
docker compose stop
docker compose up -d

View File

@ -20,8 +20,8 @@ services:
networks:
- medicine-network
environment:
POSTGRES_USER: ${MEDICINE_POSTGRES_USER:-postgres}
POSTGRES_PASSWORD: ${MEDICINE_POSTGRES_PASSWORD:-password}
POSTGRES_USER: ${POSTGRES_USER:-postgres}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-password}
healthcheck:
test: [ "CMD-SHELL", "pg_isready -U postgres" ]
interval: 10s