You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
37 lines
1.1 KiB
YAML
37 lines
1.1 KiB
YAML
version: '3'
|
|
|
|
volumes:
|
|
aact_pg_database: #This is to hold the database.
|
|
|
|
services:
|
|
|
|
aact:
|
|
build: ./ClinicalTrialHistory #build and use the clinical trial history db.
|
|
container_name: aact_db
|
|
#restart: always #restart after crashes
|
|
environment:
|
|
POSTGRES_USER: root
|
|
POSTGRES_PASSWORD: root
|
|
POSTGRES_DB: aact_db
|
|
ports:
|
|
- "5432:5432" #host:container
|
|
volumes: #host:container is the format.
|
|
- aact_pg_database:/var/lib/postgresql/ # this is persistant storage for the database
|
|
- ./20220201_clinical_trials/postgres_data.dmp:/mnt/host_data/postgres_data.dmp
|
|
|
|
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.
|
|
#The volume with server login information.
|
|
- ./pgadmin4/servers.json:/pgadmin4/servers.json
|
|
|
|
#Checklist for production
|
|
# uncomment restart: always in both services.
|
|
# add a python environment to run data collection etc |