Last active
January 27, 2020 20:45
-
-
Save seandearnaley/7f519f681050776c746f8407a6fbe535 to your computer and use it in GitHub Desktop.
BrainStrike Docker Compose for Postgres
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '3.1' | |
services: | |
postgres: | |
image: 'postgres' | |
ports: | |
- '5432:5432' | |
volumes: | |
- ./pg-init-scripts:/docker-entrypoint-initdb.d | |
environment: | |
POSTGRES_MULTIPLE_DATABASES: brainstrike,brainstrike_test | |
POSTGRES_USER: ${POSTGRES_USER} | |
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD} | |
restart: unless-stopped | |
pgadmin: | |
image: dpage/pgadmin4 | |
depends_on: | |
- postgres | |
ports: | |
- "5555:80" | |
environment: | |
PGADMIN_DEFAULT_EMAIL: ${PGADMIN_DEFAULT_EMAIL} | |
PGADMIN_DEFAULT_PASSWORD: ${PGADMIN_DEFAULT_PASSWORD} | |
restart: unless-stopped | |
volumes: | |
postgres-data: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment