Hermsi1337 / docker-ark-server

Dockerize your ARK server - configurable via env
https://hub.docker.com/r/hermsi/ark-server/
MIT License
115 stars 35 forks source link

Using variable GAME_CLIENT_PORT leaves the SERVER_LIST_PORT unexposed #14

Closed Lunaresk closed 2 years ago

Lunaresk commented 3 years ago

Whenever I used the variable GAME_CLIENT_PORT with a docker-compose.yml I noticed two things.

  1. The port is not used in the starting arguments (there is no "\?Port=7001" when I want to use port 7001).
  2. When I use this option, I can't find my server anymore via steam server interface, even tho I haven't changed this port. Attached the malicious compose-file for possible reproduction.

I fixed it myself with entering the container and inserting the port option in the main.cfg from the instance.

docker-compose.txt

Hermsi1337 commented 2 years ago

Sorry for my very delayed response...

It's very strange that as soon as you use the variable, you're unable to locate your server via steam.
The variable is always set directly in the Dockerfile there should not be any difference if you also set it in docker-compose.yml without changing the value.

I didn't know, that it's required to run the server with the port-args when changing them.. that's why the arguments are missing.
I'll provide a fix for that by always adding ?Port=${GAME_CLIENT_PORT}?QueryPort=${SERVER_LIST_PORT} to the arkmanager run.

Lunaresk commented 2 years ago

Honestly I didn't know that either ^^' I just experimented a bit with some options and that's what I found. No problem with the delay.

amelios commented 2 years ago

Any chance this ever got updated? I was attempting to run 2 different servers, and the second one (with adjusted port numbers) seems to be colliding with the first. Guessing it's due to this.

Hermsi1337 commented 2 years ago

As soon as I find the time, I will update this...

Even though the change is not very extensive, I'm currently pretty busy..

But: You guys could try working this "bug" around by using additional args like

$ docker run hermsi/ark-server --arkopt,QueryPort=1234 --arkopt,Port=12345

I'd appreciate your Feedback if this works for you (=

ThePowershellNinja commented 2 years ago

@Hermsi1337 This issue seems to be solved in #25 with the symlink for the /etc/arkmanager directory to /app/arkmanager.

Lunaresk commented 2 years ago

It worked!! Awesome work :D