move from bind mounts to named volumes

This commit is contained in:
Andreas Knuth 2024-02-28 10:04:47 -06:00
parent 0a8f73fc46
commit 9f62e5f3f9
1 changed files with 5 additions and 1 deletions

View File

@ -5,7 +5,7 @@ services:
postgres:
image: postgres:15.5-alpine3.19
volumes:
- ./postgres_data:/var/lib/postgresql/data
- postgres_volume:/var/lib/postgresql/data
environment:
POSTGRES_DB: keycloak
POSTGRES_USER: keycloak
@ -46,4 +46,8 @@ services:
networks:
bizmatch:
external: true
volumes:
postgres_volume:
external: true