(Aside: it can still be overridden by docker compose up -p <projectname>, in case you want to run multiple instances of the librenms stack concurrently)
Configuration
Docker version (type docker --version) : 5:20.10.21~3-0~ubuntu-jammy
Docker compose version if applicable (type docker-compose --version) : docker-compose-plugin 2.12.2~ubuntu-jammy
Behaviour
Steps to reproduce this issue
cd examples/compose
docker compose up -d
Expected behaviour
The docker-compose project to be called "librenms"
Actual behaviour
The created project is called "compose" (see
docker compose ls
), and so are other resources which are named from it, such as the network:This is because the project name defaults to the name of the enclosing directory, which indeed in this case is "compose".
However this is easily fixed by adding a top-level "name" setting to docker-compose.yml, i.e.
(Aside: it can still be overridden by
docker compose up -p <projectname>
, in case you want to run multiple instances of the librenms stack concurrently)Configuration
docker --version
) : 5:20.10.21~3-0~ubuntu-jammydocker-compose --version
) : docker-compose-plugin 2.12.2~ubuntu-jammyuname -a
) :Linux noc 5.15.0-52-generic #58-Ubuntu SMP Thu Oct 13 08:03:55 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
docker-compose.yml
,.env
, ...: see above