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