Webserver, Python and Gameserver inside one docker

  • Hello!


    I have got a new x86 server with enough power to replace all my Raspi(home automatisation) and other ARM/x86-Servers (Zyxel-NAS and a x86 gameserver).

    I have installed OVM5 via image and the NAS-part works fine for me.


    On my old gameserver runs a LAMP installation with python-glue in the background. So i can start, stop, reconfiguration and update a lot of gameservers (minecraft, ARK, teamspeak.,..)

    (The are only for my kids and me! There is no routing to the internet. There are only 5 players maximum. Thats needs no giant hardwarepower...only a lot of RAM ;))


    Now i want the same on my new server. But the nginx-plug in is not longer supported at OMV5, but I need(?) a direct access to this gameservers.

    (Example: Klick start -> exec"startgame.sh" -> starts configuration and gameserver as an another user.)


    And i have no idea how to implementing this in a docker... this is my first contact with docker.


    When i read this...its sound a little bit confusing, but i hope you understand my problem.

    I dont want a step-by-step solution, i want only good startpoint and a direction. ;)


    Phosby



    Summery in german:

    Ich habe mir einen neuen x86 Server zusammengestellt um alle meine anderen Server abzulösen. Der NAS-Teil funktioniert dank OMV sehr gut.

    Auf einem meiner alten Server war ein LAMP+Python installiert, über dessen Weboberfläche ich verschiedene (Game-)Server administrieren konnte.

    Die Server wurden nicht im Internet zugänglich gemacht, das war nur für meine Kinder und mich.

    Das nginx-plugin gibt es nicht mehr. Meine alten Skripte griffen sehr tief in das System ein und ich weiß nicht, wie ich das in Docker implementiere und ob dies überhaupt geht.

  • Hello,

    In my opinion, you can split thes use/case in some docker container.

    For your use/case, click start to launch..... You can use the gui Portainer. That's a docker container that manage other container.

    So you don't have to manage on command line.

    The only command line you have to do is create a specific user for docker, and pull and run the portainer container.


    To set a portainer container, i do this cli:

    Code
    docker run -d --name="Portainer" -p 9000:9000 -v /var/run/docker.sock:/var/run/docker.sock -v portainer_data:/data -e PGID=100 -e PUID=1002 portainer/portainer-ce

    You have to replace PGID = 100 if your's usser group id is not 100.

    You have to replace PUID = 1002 by the id of your specific docker user.


    Then, open your webbrowser and go to url <op_adress_of_your_omv>:9000 (or other port if you changed the port in my previous cli).

    The next step will be, hum, learn about portainer, but you will find easily some "how to", perhaps techno dad made one ^^


    When you're done with your containers, you can easily stop/start one or many of them by the portainer gui, no need of a "start_game" file.


    I'm not an expert in docker, portainer, or linux, but with some patience and some research, you can easily run some container.


    Take your time, "RTFM" ;) and you will achieve your purpose :)

    French nooby User. Sorry for my English language mistakes, I'm not used to post on english forum

    • MB: Asrock QC5000m microATX with AMD 5050 APU / RAM : 16 gb HyperX, Case: Fractal Design Node 804
    • Storage : Kingston SSD 128go (for OMV) / 1x4Tb Seagate IronWolf, 1x4Tb WD Red, 1x200 Go Maxtor and 1x230Go Maxtor (old devices)
    • Docker CE (not the OMV plugin) : managed by Portainer , run JDownloader2, TeamSpeak3, NextCloud 20 etc
    • Locate / MySQL (db kodi, nextcloud) / SMB_CIFS
  • Thanks you!


    Your way looks fine for me. I will try docker, but this is a long way. There are so much new things... =O


    For the Webserver:

    I create a new VirtualServer on Nginx and actived it. (/var/www/homeserver/)

    After this i installed mariadb-server and php-mysqli. phpMyAdmin works and thats good. :)


    I installed a new Minecraftserver via docker in it runs. First Step is done! :)


    I want a simply GUI for my kids to start and stop the servers: When the ARK-Server is running you must feed your dinosaurs or they die...;)


    Phosby

  • Hello,

    yes, docker need some learnings to be comfortable with, but it can helps and solve a lot of use/case so... That's a good investment ;)

    Good news for your minecraft server, you're done fast this step ^^


    Hum, I think you can create mimited account in portainer, but I don't know if it will solved your problem for start/stop.

    French nooby User. Sorry for my English language mistakes, I'm not used to post on english forum

    • MB: Asrock QC5000m microATX with AMD 5050 APU / RAM : 16 gb HyperX, Case: Fractal Design Node 804
    • Storage : Kingston SSD 128go (for OMV) / 1x4Tb Seagate IronWolf, 1x4Tb WD Red, 1x200 Go Maxtor and 1x230Go Maxtor (old devices)
    • Docker CE (not the OMV plugin) : managed by Portainer , run JDownloader2, TeamSpeak3, NextCloud 20 etc
    • Locate / MySQL (db kodi, nextcloud) / SMB_CIFS

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!