Skip to content

Commit

Permalink
Added a new persistant volume to the database
Browse files Browse the repository at this point in the history
  • Loading branch information
ruben69695 committed Jun 20, 2022
1 parent ef0c850 commit 61fa413
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ services:
db:
image: postgres:14.3-bullseye
volumes:
- ./data/db:/var/lib/postgresql/data
- mydb:/var/lib/postgresql/data
environment:
- POSTGRES_DB=postgres
- POSTGRES_USER=postgres
Expand All @@ -29,3 +29,5 @@ services:
depends_on:
- db

volumes:
mydb:

0 comments on commit 61fa413

Please sign in to comment.