14 lines
340 B
Bash
Executable File
14 lines
340 B
Bash
Executable File
set -e
|
|
|
|
docker pull docker.med-logic.ru/medicine-notification:latest
|
|
|
|
cd /root/medicine-config/postgres
|
|
docker-compose up -d
|
|
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
|
|
docker-compose up -d
|