step by step - GodotNuts/GodotServer-Docker GitHub Wiki
Step by Step Guide
Here I will go through the step by step for using the Easy Mehtod to create a container in Docker using a github repo with my source code.
- The first thing I need to do is download the GodotServer-Docker code to my local machine. For this example I will be using my test linux server running CentOS7, but the commands are very similar for any OS
git clone https://github.com/GodotNuts/GodotServer-Docker.git
- Once cloned you need to
cd
into the new directory and edit thedocker-compose.yaml
file
cd GodotServer-Docker/
cd auto-export/
vi docker-compose.yaml
- Make any changes to the ports where the ports work like this ABC:XYZ (ABC is the external port on the container, XYZ is the port the Godot app uses inside the container)
- Make any needed changes to the
dockerfile
so the script knows how to download the repo
vi dockerfile
-
Run the final command to create the container
docker-compose up -d
please note if you dont include the-d
the container will still build itself and you can watch the process, but as soon as you close the window it dies -
If all goes well, using something like Portainer we can see the container running