Merge pull request #2493 from bestlong/pgsql-version-specify
postgresql version can specify
This commit is contained in:
commit
c8c63e6a78
@ -469,7 +469,10 @@ services:
|
|||||||
|
|
||||||
### PostgreSQL ###########################################
|
### PostgreSQL ###########################################
|
||||||
postgres:
|
postgres:
|
||||||
build: ./postgres
|
build:
|
||||||
|
context: ./postgres
|
||||||
|
args:
|
||||||
|
- POSTGRES_VERSION=${POSTGRES_VERSION}
|
||||||
volumes:
|
volumes:
|
||||||
- ${DATA_PATH_HOST}/postgres:/var/lib/postgresql/data
|
- ${DATA_PATH_HOST}/postgres:/var/lib/postgresql/data
|
||||||
- ${POSTGRES_ENTRYPOINT_INITDB}:/docker-entrypoint-initdb.d
|
- ${POSTGRES_ENTRYPOINT_INITDB}:/docker-entrypoint-initdb.d
|
||||||
|
@ -316,6 +316,7 @@ MARIADB_ENTRYPOINT_INITDB=./mariadb/docker-entrypoint-initdb.d
|
|||||||
|
|
||||||
### POSTGRES ##############################################
|
### POSTGRES ##############################################
|
||||||
|
|
||||||
|
POSTGRES_VERSION=alpine
|
||||||
POSTGRES_DB=default
|
POSTGRES_DB=default
|
||||||
POSTGRES_USER=default
|
POSTGRES_USER=default
|
||||||
POSTGRES_PASSWORD=secret
|
POSTGRES_PASSWORD=secret
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
FROM postgres:alpine
|
ARG POSTGRES_VERSION=alpine
|
||||||
|
FROM postgres:${POSTGRES_VERSION}
|
||||||
LABEL maintainer="Ben M <git@bmagg.com>"
|
|
||||||
|
|
||||||
CMD ["postgres"]
|
CMD ["postgres"]
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user