Created
August 22, 2019 07:16
-
-
Save dahoba/1d3782f2b5b33e9dc01d1d0d69a74c8c to your computer and use it in GitHub Desktop.
Dockerfile for Postgres bundle with initial database structure
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
FROM postgres:11-alpine | |
# default database name | |
ENV DATABASE_DATABASE dev-db | |
# default username | |
ENV DATABASE_USERNAME postgres | |
# default password | |
ENV DATABASE_PASSWORD dev.db2019 | |
COPY script/dump-schema.backup /docker-entrypoint-initdb.d/dump-schema.backup | |
COPY script/init-data.backup /docker-entrypoint-initdb.d/init-data.backup | |
COPY db/create-db.sh /docker-entrypoint-initdb.d/zzz_create-db.sh |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment