Update docker-compose.postgresql.yml

Added Postgres volume bind for initialization script
This commit is contained in:
snpaul22
2024-05-04 11:23:55 -04:00
committed by GitHub
parent ddc3c2e1b5
commit 37d064aa62

View File

@@ -30,6 +30,7 @@ services:
POSTGRES_PASSWORD: "lubepass" POSTGRES_PASSWORD: "lubepass"
POSTGRES_DB: "lubelogger" POSTGRES_DB: "lubelogger"
volumes: volumes:
- ./init.sql:/docker-entrypoint-initdb.d/init.sql
- postgres:/var/lib/postgresql/data - postgres:/var/lib/postgresql/data
- /etc/localtime:/etc/localtime:ro - /etc/localtime:/etc/localtime:ro