Skip to content

Instantly share code, notes, and snippets.

@dahoba
Created August 22, 2019 07:16
Show Gist options
  • Save dahoba/1d3782f2b5b33e9dc01d1d0d69a74c8c to your computer and use it in GitHub Desktop.
Save dahoba/1d3782f2b5b33e9dc01d1d0d69a74c8c to your computer and use it in GitHub Desktop.
Dockerfile for Postgres bundle with initial database structure
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