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.
32 lines
940 B
YAML
32 lines
940 B
YAML
version: '3'
|
|
|
|
volumes:
|
|
aact_pg_database: #This is to hold the database, making it easy to purge if needed.
|
|
|
|
networks:
|
|
pharmaceutical_research: #because it helps to have a way to link specifically to this.
|
|
external: true
|
|
|
|
services:
|
|
aact_db:
|
|
image: postgres:14-alpine
|
|
networks:
|
|
- pharmaceutical_research
|
|
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.
|
|
# this is persistant storage for the database
|
|
- aact_pg_database:/var/lib/postgresql/
|
|
# this is the database dump to restore from
|
|
- ./aact_downloads/postgres_data.dmp:/mnt/host_data/postgres_data.dmp
|
|
# this is the folder containing entrypoint info.
|
|
- ./docker-entrypoint-initdb.d/:/docker-entrypoint-initdb.d/
|
|
|
|
|