Docker Community Forums

Share and learn in the Docker community.

Show Status of Container in my Webpage via PHP


(Dillasyx) #1


I’m building up a root server with several container f.e. nginx, php, fpm, mariadb, gameserver etc.

Now my plan is to have on my website a status tracker of the game server. So when my GameServer is running, that it shows f.e. a green dot, else a red one. How can I get the status of a container via PHP?

Everytime I’m looking for it on google, I just find how to make a PHP Container, so yeah, maybe someone here can help me.

Thanks in advance.
Greets, Dilla