Status HTTP-Server #318
-
How can I make a request to the server to get the status as json? |
Beta Was this translation helpful? Give feedback.
Answered by
Marcus-Rise
Mar 30, 2021
Replies: 1 comment 11 replies
-
A few days ago I dig in this question too.
version: "3"
services:
valheim:
image: mbround18/valheim:latest
ports:
- 2459:2459/tcp
...
env:
- HTTP_PORT: 2459
- PUBLIC: 1
... $ curl {PUBLIC_SERVER_IP_ADDRESS}:2459/status Additionally you can try to extract port number to env var in |
Beta Was this translation helpful? Give feedback.
11 replies
Answer selected by
TheMBeat
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
A few days ago I dig in this question too.
You need to define env var
HTTP_PORT
, make server public via env varPUBLIC: 1
, map selected tcp portThen you can ping to public ip address of your server with path
/status
docker-compose.yml
Additionally you can try to extract port number to env var in
.env