Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Warning about folder name docker #297

Closed
wants to merge 1 commit into from
Closed

Conversation

edevosc2c
Copy link
Member

Too many people are failing into this issue. Give a warning before #214 is solved.

@jeanpommier
Copy link
Member

We can also specify a project name when running docker compose, that should be enough (in our case, -p docker). Which still allows people to change the folder's name.

@superbully
Copy link

If you change the folder´s name, for example docker2 and running docker compose with -p docker2 not work for me.
In the traefik dashboard i can view the error: "the service "static-docker@docker" does not exist " .
someone could help me ?
Thank you so much.

@jeanpommier
Copy link
Member

If you change the folder´s name, for example docker2 and running docker compose with -p docker2 not work for me. In the traefik dashboard i can view the error: "the service "static-docker@docker" does not exist " . someone could help me ? Thank you so much.

Of course. @docker refers to the project's name and is hardcoded in the traefik configuration. This is why if you change the folder name, for instance docker2, you'd have to use -p docker to have it match @docker.
Alternatively, in docker-compose.override.yml, you can replace every occurrence of @docker by your folder's name, it should work too.

@superbully
Copy link

superbully commented Sep 23, 2024

If you change the folder´s name, for example docker2 and running docker compose with -p docker2 not work for me. In the traefik dashboard i can view the error: "the service "static-docker@docker" does not exist " . someone could help me ? Thank you so much.

Of course. @docker refers to the project's name and is hardcoded in the traefik configuration. This is why if you change the folder name, for instance docker2, you'd have to use -p docker to have it match @docker. Alternatively, in docker-compose.override.yml, you can replace every occurrence of @docker by your folder's name, it should work too.

Hello, sorry for the inconvenience .
I have tried but it does not work ...
I do as follows:
1.- I rename the folder docker by docker2 .
2.- I replace in the file "docker-compose.override.yml" docker by docker2 .
3.- I run the project with "docker-compose -p docker2 up -d" .

Thank you very much in advance.

@edevosc2c
Copy link
Member Author

@superbully I guess you could try with this solution: #214 (comment)
Revert all the changes that you did about "docker2" in the various files. Keep the folder named "docker2"

@superbully
Copy link

superbully commented Sep 24, 2024

@superbully I guess you could try with this solution: #214 (comment) Revert all the changes that you did about "docker2" in the various files. Keep the folder named "docker2"
@edevosc2c Hello I try with this solution: #214 (comment) and it doesn't work or I'm not doing it right .
I have done the following:
1.- I rename the folder docker by docker2 .
2.- I have changed in the file "docker-compose.override.yml" only the line "- "traefik.http.routers.traefik.middlewares=traefik-strip@docker2"
3.- I run the project with "docker-compose -p docker2 up -d" .

it doesn't work that way either

@edevosc2c
Copy link
Member Author

edevosc2c commented Sep 24, 2024

  1. Don't change anything in the files yet, do the usual quick start: https://github.com/georchestra/docker?tab=readme-ov-file#quick-start
  2. Change the folder name like from docker to docker2
  3. Launch the docker composition with the docker compose name: docker-compose -p docker up -d

Don't try to change from docker to docker2 in traefik files, there are too many lines to change.

@superbully
Copy link

  1. Don't change anything in the files yet, do the usual quick start: https://github.com/georchestra/docker?tab=readme-ov-file#quick-start
  2. Change the folder name like from docker to docker2
  3. Launch the docker composition with the docker compose name: docker-compose -p docker up -d

Don't try to change from docker to docker2 in traefik files, there are too many lines to change.

Hello, this way it works . But I need several environments on the same machine (development, testing, ...), so the name of the containers need to be different, otherwise, collisions occur. With the solution you propose, although the folder is different, it is no longer docker, the project name is still docker, so the containers are still called docker_******* . If I raise another project on the same server, errors occur because containers with the same name are already running.
Thank you very much for the help.

@edevosc2c
Copy link
Member Author

edevosc2c commented Sep 24, 2024

Understandable. I would like to remind that this docker composition is for development only, there are no guarantees for production usage.

Once you cross the line of "something that doesn't exist out of the box", you are on your own. This is an open source project ran by volunteers, not a product with a dedicated support team.

There is a pending PR that will solve the issue related to docker compose names by not depending on it anymore, but it's not yet merged: #268. Feel free to test it and give your feedback there.

@superbully
Copy link

Understandable. I would like to remind that this docker composition is for development only, there are no guarantees for production usage.

Once you cross the line of "something that doesn't exist out of the box", you are on your own. This is an open source project ran by volunteers, not a product with a dedicated support team.

There is a pending PR that will solve the issue related to docker compose names by not depending on it anymore, but it's not yet merged: #268. Feel free to test it and give your feedback there.

Understandable. I would like to remind that this docker composition is for development only, there are no guarantees for production usage.

Once you cross the line of "something that doesn't exist out of the box", you are on your own. This is an open source project ran by volunteers, not a product with a dedicated support team.

There is a pending PR that will solve the issue related to docker compose names by not depending on it anymore, but it's not yet merged: #268. Feel free to test it and give your feedback there.

Hello, good morning.
Thank you very much for your reply. I am sorry if I have insisted too much with the folder name and docker problem. I am well aware that the project is an open source project that is maintained by people in a disinterested way.
I am part of a working group of the UCLM university in which we are using Georchestra for a project. We will continue testing and if we find a solution we will share it.
Thank you very much for the help and for trying to help me.

Translated with DeepL.com (free version)

@jeanpommier
Copy link
Member

I am part of a working group of the UCLM university in which we are using Georchestra for a project. We will continue testing and if we find a solution we will share it.

Alternatively, you might want to look at our helm chart.

  • If you are on Windows, Docker desktop can be configured to support kubernetes and I tested it successfully using the helm chart, not long ago.
  • if you are on linux, there are several solutions for a light kubernetes environment. On light production environments, I like k3s, which is reasonably simple to steup.

@superbully
Copy link

I am part of a working group of the UCLM university in which we are using Georchestra for a project. We will continue testing and if we find a solution we will share it.

Alternatively, you might want to look at our helm chart.

  • If you are on Windows, Docker desktop can be configured to support kubernetes and I tested it successfully using the helm chart, not long ago.
  • if you are on linux, there are several solutions for a light kubernetes environment. On light production environments, I like k3s, which is reasonably simple to steup.

hello, thank you very much for the information. the solution you propose is the one we are studying. our development environment is linux. we will continue testing and investigating.
thank you very much for sharing your knowledge and trying to solve the problems we are having @jeanpommier @edevosc2c
I am very grateful.
Regards.

@edevosc2c
Copy link
Member Author

Fixed by #268

@edevosc2c edevosc2c closed this Nov 4, 2024
@edevosc2c edevosc2c deleted the folder-name-warning branch November 4, 2024 17:01
@superbully
Copy link

Thank you so much !!
Regards.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants