diff --git a/docker/docker-compose.prod.local.yaml b/docker/docker-compose.prod.local.yaml index 2a3f9358..3938fb63 100644 --- a/docker/docker-compose.prod.local.yaml +++ b/docker/docker-compose.prod.local.yaml @@ -11,7 +11,7 @@ services: image: ${WEB_IMAGE}:latest command: ["prod-local"] env_file: - - path: .env.dev + - path: .env.prod required: true ports: [] depends_on: diff --git a/scripts/Linux/install-docker-env.sh b/scripts/Linux/install-docker-env.sh index 947183e5..40a35c5f 100644 --- a/scripts/Linux/install-docker-env.sh +++ b/scripts/Linux/install-docker-env.sh @@ -1,5 +1,5 @@ #!/bin/bash -ENV_FILE="${1:-.env.prod}" +ENV_FILE=`realpath ${1:-.env.prod}` if [ ! -f "$ENV_FILE" ]; then echo "Environment file $ENV_FILE not found!" @@ -68,7 +68,7 @@ git checkout main git pull origin main echo "Moving the .env.prod file to the Docker directory..." -mv $ENV_FILE docker/.env.prod +ln -s $ENV_FILE $PWD/docker/.env.prod echo "Pulling the latest Docker image..." docker pull ghcr.io/ecotrust/tekdb/web:latest