Closed brickpop closed 2 weeks ago
_HOST
will be in the domains dropdown
Thank you for your response @Siumauricio
Regarding the example video, it seems to be loading the files from a git repository. In my case, I am testing Docker compose by manually copying the docker-compose.yaml file to run a well known service. For some reason (still investigating) the Traefik subdomain is not being picked by LetsEncrypt, no certificate and visiting the URL returns a 404 Not found.
Thank you!
@brickpop
About the domains to be able to maintain a standard for docker compose is not something so simple for many reasons, the compose file usually have so many possibilities and ways of doing things, therefore it is not a viable solution, some time ago I had some idea about adding the domains to the services, but I still do not have it very clear yet, because you have to modify the file which I do not like much, as I mentioned for applications is something that if you can easily handle because it is an entity instead in compose there may be N services and can be a non-trivial solution to implement this.
(Volumes) I think the answer is similar to that of domains, we do not parse the docker compose files, besides I think the volumes are clear since they are defined in a docker compose file you do not have to have another layer to view, add or delete them, the only thing that does exist and is necessary are file volumes because many times you need to create configuration files and other things.
Of course the video loads using a Git repository, but the idea is the same for almost any use case.
Regarding the error is probably some configuration by your DNS provider, or something you are adding more in your docker compose.
If you would like me to help you with your problem, I would like you to share with me your compose file and which DNS provider you are using, So I can understand more the problem
I understand, and appreciate the huge work behind Dokploy
1) How about querying from Docker itself, rather than trying to figure out what the docker-compose file has?
docker container ls --format "table {{.ID}}\t{{.Names}}\t{{.Ports}}" -a
# or
docker inspect -f "{{ .Mounts }}" <container-id>
I have an unrelated issue (probably should open a separate one) When I try to use a web hook to trigger a redeploy:
{"message":"Application Not Deployable"}
even if the app is running fineAre you absolutely sure? This action cannot be undone. This will permanently delete the domain
Thank you!
I like that idea to parse the config of the inspect command, let's add this as roadmap I can extract alot of interesting things with this!
Regarding to this:
The given api/deploy/xxx URL returns {"message":"Application Not Deployable"} even if the app is running fine
I think you don't have activated the AutoDeploy toggle
Clicking the reload button next to it shows an unrelated warning: Are you absolutely sure? This action cannot be undone. This will permanently delete the domain
Yeah I check and the text is incorrect
Altought I guess you are using github provider? if so you don't need to use the webhooks anymore, autodeploys are enabled by default
That's very helpful, thank you :)
I'd like to suggest a few potential improvements:
Application Not Deployable
JSON response might also become clearer as Automatic deployments are disabled for this application
Regarding the Domains topic, it would be very helpful if the domain/port HTTP proxy could be used on every type of container.
SOMETHING_HOST
will enable LetsEncrypt on some projects may result in more questions like the one I opened here.I hope that some of these ideas might ben helpful, thanks for suck a cool project ✨
Thanks for the suggestions, appreciated!
Can you give more details about the domains?
I think I will also work on integrating the domains in docker compose in a way that is quite friendly and similar to the applications.
@Siumauricio sorry for the delay in replying
Trying to speak as a user advocate here ;)
In general, users shouldn't need to care about the internal design of the tool they are using. For example, simple apps behaving differently that Docker compose wrappers. Also, needing to define a xxx_HOST
env var (in some cases) to set domains, etc.
My suggestion was to make the existing Advanced > Domains
tab available for all types of projects (app, docker compose, etc)
Any other details I can help with?
What problem will this feature address?
Creating a service via a Template
Instead, creating a Docker service with the same Docker image URL works just fine
Describe the solution you'd like
Describe alternatives you've considered
Manual Docker compose settings didn't work. Tried this https://docs.dokploy.com/en/docs/core/docker-compose/domains#step-1-add-the-network
Additional context
No response