Skip to content

Commit

Permalink
Use Docker volume to persist Postgres data on host filesystem
Browse files Browse the repository at this point in the history
  • Loading branch information
jalessio committed Oct 22, 2019
1 parent ee683ec commit 8d84170
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,6 @@ public/attachments
public/export
storage
tmp

# docker-compose database directory
docker-db-data
2 changes: 2 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,5 @@ services:
- "54321:5432"
environment:
POSTGRES_DB: openstreetmap
volumes:
- ./docker-db-data:/var/lib/postgresql/data

0 comments on commit 8d84170

Please sign in to comment.