Bug fix to GitHub CI build. Set compose project name via env variable. Also add default name if unspecified

This commit is contained in:
Tim Donohue
2024-02-02 14:57:34 -06:00
parent e2d014d0a6
commit f072ae74af
2 changed files with 4 additions and 1 deletions

View File

@@ -16,8 +16,9 @@ version: "3.7"
networks:
# Default to using network named 'dspacenet' from docker-compose-rest.yml.
# Its full name will be prepended with the project name (e.g. "-p d7" means it will be named "d7_dspacenet")
# If COMPOSITE_PROJECT_NAME is missing, default value will be "docker" (name of folder this file is in)
default:
name: ${COMPOSE_PROJECT_NAME}_dspacenet
name: ${COMPOSE_PROJECT_NAME:-docker}_dspacenet
external: true
services:
dspace-cli: