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

Added port so that the service-name of static is independent #278

Closed
wants to merge 3 commits into from

Conversation

hpwjnijs
Copy link

@hpwjnijs hpwjnijs commented Mar 29, 2024

So traefik sees the 'static' service as static-<directory>@docker and that how it is addressed. But you want to have it directory independant. There is no direct way to name/label your service , but according to this you can fix this by e.g.

labels:
  - traefik.http.services.<<name_of_service>>.loadbalancer.server.port=80

So, that's what we do here.
It fixes #214

@fvanderbiest
Copy link
Member

Many thanks for the contribution !

@fvanderbiest fvanderbiest added this to the 24.0 milestone Mar 29, 2024
hpwjnijs and others added 2 commits April 2, 2024 15:38
changed to .env so we can use FQDN to config docker-compose.override …yml itself
@hpwjnijs
Copy link
Author

hpwjnijs commented Apr 2, 2024

Second change (about the .env) was meant to be in a different pull request. It should address #219

@hpwjnijs
Copy link
Author

hpwjnijs commented Apr 15, 2024 via email

@fvanderbiest
Copy link
Member

Yes sure, go ahead. Thanks !

@edevosc2c
Copy link
Member

edevosc2c commented May 14, 2024

hello @hpwjnijs did you have time to split the PR :)? thank you

@hpwjnijs
Copy link
Author

I will close this PR, and make 2 new ones for the unrelated issues.

@hpwjnijs
Copy link
Author

hpwjnijs commented May 17, 2024 via email

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.

Directory name needs to be named "docker"
3 participants