diff --git a/notification/docker-compose.yml b/notification/docker-compose.yml index 4351ba9..01de016 100644 --- a/notification/docker-compose.yml +++ b/notification/docker-compose.yml @@ -15,5 +15,5 @@ services: - 80 environment: DATABASE_URL: postgres://postgres:password@medicine-postgres:5432/medicine_notification - REDIS_HOST: redis + REDIS_HOST: medicine-stack-redis SENTRY_DNS: https://f177afb8b8a44800a7ac5f14fb4a7666:b5de0145097e45ed8b85807fd9d10167@sentry.med-logic.ru/15 diff --git a/notification/install.sh b/notification/install.sh index 7d69c95..735e249 100755 --- a/notification/install.sh +++ b/notification/install.sh @@ -4,10 +4,8 @@ docker pull docker.med-logic.ru/medicine-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 -cat <> /root/medicine-config/notification/.env -EOT - cd /root/medicine-config/notification docker-compose up -d