mirror of
https://github.com/Dokploy/templates.git
synced 2026-05-07 01:00:19 -05:00
[GH-ISSUE #684] Valkey Template exports external network port #3656
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 @nikos on GitHub (Jan 16, 2026).
Original GitHub issue: https://github.com/Dokploy/templates/issues/684
To Reproduce
After creating a Valkey service from the Template (using docker compose under the hood) I was surprised that the docker process is exposed although the (default) Isolated Deployment on Docker network is enabled. The internal port 6379 is exposed externally to port 32780.
I was also trying to bind to an private network address (inside of the
valkey.confI set tobind 10.0.0.2, which is the private network I created within my Hetzner cloud setup and assigned to this server), but this did not work:Could not create server TCP listening socket 10.0.0.2:6379: bind: Cannot assign requested addressFailed listening on port 6379 (tcp), aborting.Current vs. Expected behavior
I was expecting that the port 6379 is not exported externally, but only available to the docker containers in the same dokploy project.
Provide environment information
Which area(s) are affected? (Select all that apply)
Docker Compose
Are you deploying the applications where Dokploy is installed or on a remote server?
Same server where Dokploy is installed
Additional context
See docker process
valkey/valkey:8.1.4 "docker-entrypoint.s…" 2 hours ago Up About an hour (healthy) 0.0.0.0:32780->6379/tcp, [::]:32780->6379/tcpWill you send a PR to fix it?
Maybe, need help
@Siumauricio commented on GitHub (Jan 28, 2026):
Yeah the docker compose file should use expose instead of ports and you will see no more exposed ports on a random port, you can change manually, for now I will transfer this issue to the templates repo, thanks