Commit c77a16be authored by Wade's avatar Wade

add pg data path

parent 08e5f619
......@@ -8,9 +8,9 @@ services:
POSTGRES_PASSWORD: example
volumes:
- ./config/pg/init.sql:/docker-entrypoint-initdb.d/init.sql # 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
- ${PG_DOCKER_VOLUME_DIRECTORY:-.}/pgdata:/var/lib/postgresql/data # Persist data to host directory
adminer:
image: adminer
restart: always
......
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