added persistent volumes for postgresql db

This commit is contained in:
leca 2024-11-13 19:41:30 +03:00
parent 3c7e88d389
commit 05652f1cfb
1 changed files with 1 additions and 4 deletions

View File

@ -13,11 +13,8 @@ services:
- ./data/uploads:/uploads
database:
image: 'postgres:15'
# ports:
# - 5432:5432
volumes:
- ./data/db:/var/lib/postgresql
- ./data/db:/var/lib/postgresql/data
environment:
POSTGRES_USER: bsfe
POSTGRES_PASSWORD: Ch@NgEME!