Skip to content

Fix setting port on a dedicated server with the SERVER_PORT variable not working when using the docker#1457

Merged
sylvessa merged 1 commit intosmartcmd:mainfrom
BrainFart17:main
Apr 2, 2026
Merged

Fix setting port on a dedicated server with the SERVER_PORT variable not working when using the docker#1457
sylvessa merged 1 commit intosmartcmd:mainfrom
BrainFart17:main

Conversation

@BrainFart17
Copy link
Copy Markdown
Contributor

Description

Makes it so that setting SERVER_PORT when using the docker works correctly

Changes

Replaces instances of the hard coded default port (25565) in the yml files used for the docker with the SERVER_PORT variable

Previous Behavior

Previously, changing the SERVER_PORT variable wouldn't work correctly since the default port of 25565 was still hard-coded in the ports.

Root Cause

The mismatch between the hard-coded port and the port set by SERVER_PORT caused dedicated servers to not work when SERVER_PORT was set to something other than 25565

New Behavior

Setting SERVER_PORT now works as intended

Fix Implementation

replaced instances of 25565 with $SERVER_PORT

AI Use Disclosure

None

Related Issues

None

@BrainFart17 BrainFart17 changed the title Fix setting ports with the SERVER_PORT variable not working when using the docker Fix setting port with the SERVER_PORT variable not working when using the docker Apr 2, 2026
@BrainFart17 BrainFart17 changed the title Fix setting port with the SERVER_PORT variable not working when using the docker Fix setting port on a dedicated server with the SERVER_PORT variable not working when using the docker Apr 2, 2026
@sylvessa sylvessa merged commit e4c08b8 into smartcmd:main Apr 2, 2026
2 checks passed
@sylvessa
Copy link
Copy Markdown
Collaborator

sylvessa commented Apr 2, 2026

ty for this

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.

2 participants