add init database

This commit is contained in:
KUI\ahkui
2018-06-15 04:39:19 +08:00
parent 5016e88515
commit 4b2c440146
3 changed files with 36 additions and 0 deletions

View File

@ -322,6 +322,7 @@ services:
build: ./postgres
volumes:
- ${DATA_PATH_HOST}/postgres:/var/lib/postgresql/data
- ${POSTGRES_ENTRYPOINT_INITDB}:/docker-entrypoint-initdb.d
ports:
- "${POSTGRES_PORT}:5432"
environment: