Commit c77a16be authored by Wade's avatar Wade

add pg data path

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