Skip to content

Instantly share code, notes, and snippets.

@kshitij10496
Created January 17, 2019 16:15
Show Gist options
  • Save kshitij10496/2e203ce2651671cd8b5d10ff23c1c319 to your computer and use it in GitHub Desktop.
Save kshitij10496/2e203ce2651671cd8b5d10ff23c1c319 to your computer and use it in GitHub Desktop.
[Postgres with Docker]: Data Persistence
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