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: postgres:
image: postgres:15.5-alpine3.19 image: postgres:15.5-alpine3.19
volumes: volumes:
- ./postgres_data:/var/lib/postgresql/data - postgres_volume:/var/lib/postgresql/data
environment: environment:
POSTGRES_DB: keycloak POSTGRES_DB: keycloak
POSTGRES_USER: keycloak POSTGRES_USER: keycloak
@ -47,3 +47,7 @@ services:
networks: networks:
bizmatch: bizmatch:
external: true external: true
volumes:
postgres_volume:
external: true