Created
January 17, 2019 16:15
-
-
Save kshitij10496/2e203ce2651671cd8b5d10ff23c1c319 to your computer and use it in GitHub Desktop.
[Postgres with Docker]: Data Persistence
This file contains 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' | |
services: | |
postgres: | |
image: postgres:11.1-alpine | |
container_name: shadowsDB | |
environment: | |
POSTGRES_DB: "league_of_shadows" | |
POSTGRES_USER: "batman" | |
POSTGRES_PASSWORD: "blueflower" | |
volumes: | |
- ./postgres:/docker-entrypoint-initdb.d | |
- /tmp/postgres:/var/lib/postgresql/data # Dump Volume |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment