Replace project name variable for service name
This commit is contained in:
+2
-2
@@ -5,7 +5,7 @@ SCRIPT_PATH=$( cd "$(dirname "$0")" ; pwd -P )
|
||||
IMAGE_NAME="mdillon/postgis"
|
||||
IMAGE_VERSION="9.5"
|
||||
|
||||
PROJECT_NAME=pgsql-db
|
||||
SERVICE_NAME=pgsql-db
|
||||
|
||||
|
||||
source ${SCRIPT_PATH}/../common.shinc
|
||||
@@ -29,7 +29,7 @@ init() {
|
||||
__msg "Removing old postgres bin volume..."
|
||||
docker volume rm -f ${PGSQL_DB_BIN} &&
|
||||
docker create \
|
||||
--name ${PROJECT_NAME} \
|
||||
--name ${SERVICE_NAME} \
|
||||
--restart=unless-stopped \
|
||||
-v ${DB_VOLUME}:/var/lib/postgresql/data \
|
||||
-v ${PGSQL_DB_BIN}:/usr/lib/postgresql/${IMAGE_VERSION}/bin \
|
||||
|
||||
Reference in New Issue
Block a user