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.

  1. 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

Git Clone

  1. Once cloned you need to cd into the new directory and edit the docker-compose.yaml file
cd GodotServer-Docker/
cd auto-export/
vi docker-compose.yaml

Edit docker-compose

  1. 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)

Compose Edit

  1. Make any needed changes to the dockerfile so the script knows how to download the repo
vi dockerfile

Container

  1. 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

  2. If all goes well, using something like Portainer we can see the container running

Container