mirror of
https://github.com/Dokploy/templates.git
synced 2026-05-06 16:55:42 -05:00
[GH-ISSUE #640] Compose file practices re. ports (vs expose) and version
#2294
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @dtinth on GitHub (Jan 5, 2026).
Original GitHub issue: https://github.com/Dokploy/templates/issues/640
First, thank you for all your work on Dokploy! Really enjoying it and deploying a lot of stuff with it.
I raise this issue to ask if we should improve the General Requirements when creating a template as follows:
Proposal 1 - Remove
versionpropertyMany templates (example) includes a
versionproperty. However, it is now obsolete and completely ignored. Deploying a service with most templates will produce with warning:The proposal is to completely remove
versionfield from all compose files. If you think this is a good idea, I can submit a PR that removes theversionfield from all compose files.Proposal 2 - Use
exposeinstead ofportsfor HTTP services.netdata’s service compose file specifies:
This has an unintended side effect of binding a random port on the host to the port 19999 inside the container. However, this is documented in General Requirements when creating a template like this:
Since it is an HTTP service, it’s supposed to be accessed through Traefik. Therefore, I believe the intended way is to do use
exposeinstead of ports:An exception is for non-HTTP service or services that should be accessed directly (bypassing Traefik).
The proposal is to replace
portswithexposefor HTTP services with Domains already configured. This may have to be evaluated on a case-by-case basis. But if this is a good idea, I can submit PRs for services that I use when I found it.@bruxaodev commented on GitHub (Jan 26, 2026):
👍