set -e

docker pull docker.med-logic.ru/micro-notification:latest

cd /root/medicine-config/postgres
docker-compose up -d
sleep 10
docker-compose exec postgres psql -c 'CREATE DATABASE medicine_notification' --username=postgres

cd /root/medicine-config/redis
docker-compose up -d

cd /root/medicine-config/notification
docker-compose up -d
