Skip to content

Latest commit

 

History

History
51 lines (35 loc) · 1.89 KB

README.md

File metadata and controls

51 lines (35 loc) · 1.89 KB

docker-altitude

A nice and easy way to get an Altitude server up and running using Docker. For help on getting started with Docker see the official getting started guide. For more information on Altitude and check out its website.

Building docker-altitude

Running this will build you a docker image with the latest version of docker-altitude..

git clone https://github.com/sgnl05/docker-altitude
cd docker-altitude
docker build -t sgnl05/altitude .

Running docker-altitude

Running the first time will set your ports to static ports of your choice so that you can easily map a proxy to them. If this is the only thing running on your system you can map the udp port range to 27275-27276 and no proxy is needed. i.e. -p=27275-27276:27275-27276/udp. Server config will be downloaded from the serverconfigs folder. File name is based on what hostname you choose with the -h flag.

docker run --name=altitude -h=altitude01 -p=27275-27276:27275-27276/udp sgnl05/altitude

From now on when you start/stop docker-altitude you should use the container name with the following commands. If you havent specified a name then Docker will generate one for you. To get your container name, after you initial run type sudo docker ps and it will show up on the right side side.

docker start <NAME>
docker stop <NAME>

Notes on the run command

  • --name is the container name. Set this to whatever single word you want.
  • -h is the hostname of your choice. The hostname is used for pulling the server config.
  • sgnl05/altitude is simply what I called my docker build of this image.
  • -p is the port(s) it connects to, -p=host_port:docker_port. Use "-" to define a range.

Credits

Code is based on docker-minecraft by Isaac Bythewood.