parent
2ec314180f
commit
ef7ed7001b
Binary file not shown.
@ -1 +1 @@
|
|||||||
{"resources":{"development_sql/ASSOICATING NCTIDs to NDCs and Marketing dates.sql":{"default-datasource":"postgres-jdbc-186be7b92d8-4d6ef891885b76f5","default-catalog":"aact_db","default-schema":"public"}}}
|
{"resources":{"development_sql/ASSOICATING NCTIDs to NDCs and Marketing dates.sql":{"default-datasource":"postgres-jdbc-186c896a347-2a3d946d2dea4df7","default-catalog":"aact_db","default-schema":"public"}}}
|
||||||
@ -0,0 +1,23 @@
|
|||||||
|
version: '3'
|
||||||
|
|
||||||
|
networks:
|
||||||
|
pharmaceutical_research: #because it helps to have a way to link specifically to this.
|
||||||
|
|
||||||
|
services:
|
||||||
|
aact_db:
|
||||||
|
image: postgres:14-alpine
|
||||||
|
networks:
|
||||||
|
- pharmaceutical_research
|
||||||
|
container_name: DrugCentral
|
||||||
|
#restart: always #restart after crashes
|
||||||
|
environment:
|
||||||
|
POSTGRES_PASSWORD: root
|
||||||
|
ports:
|
||||||
|
- "54320:5432" #host:container
|
||||||
|
volumes: #host:container is the format.
|
||||||
|
# this is persistant storage for the database
|
||||||
|
- ./db_store/:/var/lib/postgresql/
|
||||||
|
# this is the folder containing entrypoint info.
|
||||||
|
- ./docker-entrypoint-initdb.d/:/docker-entrypoint-initdb.d/
|
||||||
|
|
||||||
|
|
||||||
@ -0,0 +1,9 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
filename="drugcentral.dump.08222022.sql.gz"
|
||||||
|
|
||||||
|
cd ./docker-entrypoint-initdb.d/
|
||||||
|
|
||||||
|
curl "https://unmtid-shinyapps.net/download/$filename" --output "$filename"
|
||||||
|
|
||||||
|
gzip -d $filename
|
||||||
Loading…
Reference in New Issue