coolify icon indicating copy to clipboard operation
coolify copied to clipboard

[Bug]: docker compose project name

Open n1ght-hunter opened this issue 1 year ago • 6 comments

Description

no docker compose project name is being set so it is using the file name which is source and doesn't really show what it is. i have something like 30 project running and this offputing.

fix is either add -p coolify to docker compose up or add COMPOSE_PROJECT_NAME=coolify to the env

Minimal Reproduction (if possible, example repository)

NA

Exception or Error

No response

Version

V4

n1ght-hunter avatar Sep 26 '23 22:09 n1ght-hunter

Docker Compose support is not yet available in v4 (only in development mode). How (or why) do you use it?

andrasbacsai avatar Sep 27 '23 20:09 andrasbacsai

sorry i should have explained it more this the docker compose stack name that coolify uses to deploy coolify, postgresql and redis. its done using this compose file. https://github.com/coollabsio/coolify/blob/main/docker-compose.yml

n1ght-hunter avatar Sep 28 '23 11:09 n1ght-hunter

Sorry, but I still don't get it. Can you please rephrase your problem?

By the way, composd support is available for a few days.

andrasbacsai avatar Oct 03 '23 05:10 andrasbacsai

as document in link below shows --project-name is used to set the project name when running a docker compose file https://docs.docker.com/compose/reference/#command-options-overview-and-help

currently coolfiy's start script just calls docker compose -d which means if your call docker compose ls coolify will be listed as source running(3) /data/coolify/source/docker-compose.yml,/data/coolify/source/docker-compose.prod.yml because the project name was just chosen from the dir that the compose is in which is source. but if docker compose is called like docker compose -p coolify -d it would look like coolify running(3) /data/coolify/source/docker-compose.yml,/data/coolify/source/docker-compose.prod.yml

n1ght-hunter avatar Oct 06 '23 07:10 n1ght-hunter

Yes, but this is only for the development environment of Coolify, right?

The actual resources deployed by Coolify have a good name.

andrasbacsai avatar Oct 09 '23 13:10 andrasbacsai

this is for the coolify stack its self none of the things it runs

n1ght-hunter avatar Oct 13 '23 11:10 n1ght-hunter

Due to inactivity, I'm closing this issue. However, if the problem persists, please reopen the issue. Thanks!

andrasbacsai avatar Jun 06 '24 11:06 andrasbacsai