Replace project name variable for service name

This commit is contained in:
Arnie
2018-01-04 06:58:48 +01:00
parent 770aafa5ca
commit ac46887e75
8 changed files with 34 additions and 34 deletions
+2 -2
View File
@@ -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 \