From b93ba0f0f5802e4dc0d85646430ccdd7593b45b5 Mon Sep 17 00:00:00 2001 From: Ilya Mukhortov Date: Wed, 27 Jan 2021 22:54:46 +1000 Subject: [PATCH] pass --- bash_scripts/install.sh | 3 ++- restore_database.sh | 3 +-- thirdparty-apps/docker-compose.yml | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/bash_scripts/install.sh b/bash_scripts/install.sh index 3ec9bf5..70d5416 100644 --- a/bash_scripts/install.sh +++ b/bash_scripts/install.sh @@ -27,7 +27,8 @@ docker-compose up -d cd /root/medicine-config/tfoms-patient docker-compose up -d +docker-compose run --rm app bash -c "(cd /app/tfoms && flask db upgrade)" cd /root/medicine-config/medicine - +cp env.sample .env # docker exec -i medicine-stack-postgres pg_dump --no-owner -U postgres -F c medicine > /root/medicine-backups/latest_database.tar.gz --exclude-table-data=riisz_logging --exclude-table-data=reversion_* diff --git a/restore_database.sh b/restore_database.sh index 31a5cfb..33673d6 100644 --- a/restore_database.sh +++ b/restore_database.sh @@ -4,5 +4,4 @@ set -e docker exec -i medicine-stack-postgres psql -c 'DROP DATABASE IF EXISTS medicine' --username=postgres; docker exec -i medicine-stack-postgres psql -c 'CREATE DATABASE medicine' --username=postgres; -docker cp medicine-stack-postgres:/backup.tar.gz -docker exec medicine-stack-postgres pg_restore --dbname=medicine /backup.tar.gz --username=postgres; \ No newline at end of file +docker exec medicine-stack-postgres pg_restore --dbname=medicine /files/database.tar.gz --username=postgres; \ No newline at end of file diff --git a/thirdparty-apps/docker-compose.yml b/thirdparty-apps/docker-compose.yml index 75c7ab3..fac7e5c 100644 --- a/thirdparty-apps/docker-compose.yml +++ b/thirdparty-apps/docker-compose.yml @@ -9,7 +9,7 @@ services: external_links: - "postgres:postgres-host" environment: - PGADMIN_DEFAULT_EMAIL: "admin" + PGADMIN_DEFAULT_EMAIL: "admin@domain.com" PGADMIN_DEFAULT_PASSWORD: "pgadmin-pass" ports: - "851:80"