From 3f4d73c33a3790fa3f62cb741decbc27329e7675 Mon Sep 17 00:00:00 2001 From: youainti Date: Fri, 11 Feb 2022 19:13:57 -0800 Subject: [PATCH] Working postgres and pgadmin docker-compose.yaml --- .gitignore | 3 +++ PostgressDocker/docker-compose.yaml | 40 +++++++++++++++++++++++++++++ README.md | 4 ++- 3 files changed, 46 insertions(+), 1 deletion(-) create mode 100644 PostgressDocker/docker-compose.yaml diff --git a/.gitignore b/.gitignore index d78c579..2dfd14c 100644 --- a/.gitignore +++ b/.gitignore @@ -178,3 +178,6 @@ docs/site/ # environment. Manifest.toml + +###### Custom ##### +/20220201_clinical_trials.zip diff --git a/PostgressDocker/docker-compose.yaml b/PostgressDocker/docker-compose.yaml new file mode 100644 index 0000000..1e6559d --- /dev/null +++ b/PostgressDocker/docker-compose.yaml @@ -0,0 +1,40 @@ +version: '3' + +services: + aact: + container_name: aact_db + image: postgres + #restart: always #restart to run things well. + environment: + POSTGRES_USER: admin + POSTGRES_PASSWORD: root + POSTGRES_DB: aact_db + ports: + - "3000:5432" #host:container + volumes: #host:container is the format. + #pull in a single file + #- $HOME/research/ClinicalTrialsDataProcessing/PostgressDocker/infile:/infile + #add a storage volumes + - aact_pg_database:/var/lib/postgresql/ + - aact_helpful_files:/mnt/host_data #the :ro give read only permisions + + pgadmin: + container_name: pgadmin4_webservice + image: dpage/pgadmin4 + #restart: always + environment: + PGADMIN_DEFAULT_EMAIL: admin@admin.com + PGADMIN_DEFAULT_PASSWORD: root + ports: + - "5050:80" + volumes: #host:container is the format. + #add a storage volumes + - aact_helpful_files:/mnt/host_data #addin :ro to the end would give read only permissions + +volumes: + aact_pg_database: #This is to hold the database. + aact_helpful_files: #This is to hold files that need accessed by both pgadmin and postgres. I honestly expect it to usually be empty. + +#Checklist for production +# uncomment restart: always in both services. +# add a python environment to run data collection \ No newline at end of file diff --git a/README.md b/README.md index e682739..e72ef69 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,5 @@ # ClinicalTrialsDataProcessing -This is used to build tools which process and standardize data. \ No newline at end of file +This is used to build tools which process and standardize the data. + +More data later.