Skip to content

Set docker compose project name

Hashar requested to merge docker-compose-project-name into master

docker-compose project name defaults to the directory name which for this repository is docker. That prevents one from directly invoking docker-compose logs unless explicitly mentionning the project name:

docker-compose -p scap3-dev logs

The compose file specification allows a top level name element to mention the project: https://docs.docker.com/compose/compose-file/#name-top-level-element

While at it move the networks definition toward the top of the file to have it stand out and replaces occurences of scap3-dev by the project name ($COMPOSE_PROJECT_NAME).

Merge request reports