Skip to content

Instantly share code, notes, and snippets.

@Jasperswaagman
Last active October 14, 2015 08:59
Show Gist options
  • Save Jasperswaagman/d95febc1dd2fe5e7c953 to your computer and use it in GitHub Desktop.
Save Jasperswaagman/d95febc1dd2fe5e7c953 to your computer and use it in GitHub Desktop.
Persistant data pgSQL
app:
build: .
volumes:
- .:/app
ports:
- "80:3000"
links:
- postgres
postgres:
dockerfile: Dockerfile.postgres
image: postgres:9.4
environment:
- /var/lib/postgresql/data/pgdata
volumes:
- /some/where/local:/var/lib/postgresql/data/pgdata
@Jasperswaagman
Copy link
Author

Check https://hub.docker.com/_/postgres/ for persistant data within a subdir with pgSQL.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment