From d956f84fadd65a4d6856ae74aaa8e26a2920cd95 Mon Sep 17 00:00:00 2001 From: Ilya Mukhortov Date: Sun, 31 May 2026 19:49:59 +1000 Subject: [PATCH] pass --- notification/docker-compose.yml | 2 +- notification/install.sh | 13 +++++++++++++ service-postgres/docker-compose.yml | 2 ++ 3 files changed, 16 insertions(+), 1 deletion(-) create mode 100755 notification/install.sh diff --git a/notification/docker-compose.yml b/notification/docker-compose.yml index 3269d1b..00bd487 100644 --- a/notification/docker-compose.yml +++ b/notification/docker-compose.yml @@ -8,7 +8,7 @@ services: notification: restart: "always" container_name: "notification" - image: docker.med-logic.ru/micro-notification:latest + image: docker.med-logic.ru/medicine-notification:latest networks: - medicine-network expose: diff --git a/notification/install.sh b/notification/install.sh new file mode 100755 index 0000000..986d88c --- /dev/null +++ b/notification/install.sh @@ -0,0 +1,13 @@ +set -e + +docker pull docker.med-logic.ru/medicine-notification:latest + +cd /root/medicine-config/service-postgres +docker-compose up -d +docker-compose exec postgres psql -c 'CREATE DATABASE medicine_notification' --username=user + +cat <> /root/medicine-config/notification/.env +EOT + +cd /root/medicine-config/notification +docker-compose up -d diff --git a/service-postgres/docker-compose.yml b/service-postgres/docker-compose.yml index 25f21c3..6302a23 100644 --- a/service-postgres/docker-compose.yml +++ b/service-postgres/docker-compose.yml @@ -1,3 +1,5 @@ +version: '3.4' + networks: medicine-network: external: true