Commit 37b0a438 authored by Wade's avatar Wade

pg mount init dir

parent bdd3df12
......@@ -7,7 +7,7 @@ services:
environment:
POSTGRES_PASSWORD: example
volumes:
- ./config/pg/init.sql:/docker-entrypoint-initdb.d/init.sql # Mount the init script
- ./config/pg/:/docker-entrypoint-initdb.d/ # Mount the init script
- ${PG_DOCKER_VOLUME_DIRECTORY:-.}/pgdata:/var/lib/postgresql/data # Persist data to host directory
ports:
- 5432:5432 # Expose PostgreSQL port to host
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment