pass
This commit is contained in:
parent
b317df8b32
commit
8b1ea22a39
|
|
@ -15,5 +15,5 @@ services:
|
||||||
- 80
|
- 80
|
||||||
environment:
|
environment:
|
||||||
DATABASE_URL: postgres://postgres:password@medicine-postgres:5432/medicine_notification
|
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
|
SENTRY_DNS: https://f177afb8b8a44800a7ac5f14fb4a7666:b5de0145097e45ed8b85807fd9d10167@sentry.med-logic.ru/15
|
||||||
|
|
|
||||||
|
|
@ -4,10 +4,8 @@ docker pull docker.med-logic.ru/medicine-notification:latest
|
||||||
|
|
||||||
cd /root/medicine-config/postgres
|
cd /root/medicine-config/postgres
|
||||||
docker-compose up -d
|
docker-compose up -d
|
||||||
|
sleep 10
|
||||||
docker-compose exec postgres psql -c 'CREATE DATABASE medicine_notification' --username=postgres
|
docker-compose exec postgres psql -c 'CREATE DATABASE medicine_notification' --username=postgres
|
||||||
|
|
||||||
cat <<EOT >> /root/medicine-config/notification/.env
|
|
||||||
EOT
|
|
||||||
|
|
||||||
cd /root/medicine-config/notification
|
cd /root/medicine-config/notification
|
||||||
docker-compose up -d
|
docker-compose up -d
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue