Last active
October 14, 2015 08:59
-
-
Save Jasperswaagman/d95febc1dd2fe5e7c953 to your computer and use it in GitHub Desktop.
Persistant data pgSQL
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
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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Check https://hub.docker.com/_/postgres/ for persistant data within a subdir with pgSQL.