cr-connect-workflow/postgres/docker-compose.yml
Aaron Louie e1e866a2b3 Gets docker-compose working.
You'll need to add a .env file to the same directory as the docker-compose.yml file that sets the values for DB_USER and DB_PASS.
2020-02-04 21:42:09 -05:00

14 lines
370 B
YAML

version: "3.7"
services:
db:
image: postgres
volumes:
- ./pg-init-scripts/initdb.sh:/docker-entrypoint-initdb.d/initdb.sh
- $HOME/docker/volumes/postgres:/var/lib/postgresql/data
ports:
- 5432:5432
environment:
- POSTGRES_USER=${DB_USER}
- POSTGRES_PASSWORD=${DB_PASS}
- POSTGRES_MULTIPLE_DATABASES=crc_dev,crc_test