Code Monkey home page Code Monkey logo

trackmania-server-docker's Introduction

trackmania-server-docker

Docker image(s) for running a trackmania 2020 dedicated server + pyplanet easily.

The project is divided into 3 images, separated by tags. I suggest new users to use the :server & :pyplanet images separately, since this makes it possible to have multiple servers controlled by single pyplanet container.

  • :latest
    • This tag is a 'legacy' image, it's a combined trackmania server + pyplanet installation
    • Built from folder ./build-legacy
  • :server
    • This tag is the latest version of the trackmania server image
    • Built from folder ./build-server
  • :pyplanet
    • This tag is the latest version of the pyplanet server controller image
    • Built from folder ./build-pyplanet

compose

The compose directories contain example compose & config files for actually starting & running container(s) with the built image(s).

You're supposed to edit it to your likings if you want to run your own server. Put your maps into the compose-(example|legacy)/maps folder. Download from trackmania exchange.

Example compose command to deploy the stack. The p argument specifies project name that you can change to easily deploy multiple server stacks on same machine.

docker-compose -p tm_server -f docker-compose.yaml up -d

You can also easily deploy the stack remotely to a target dedicated server (that has docker running in it)

DOCKER_HOST="ssh://[email protected]" docker-compose -p tm_server -f docker-compose.yaml up -d

compose-example

This example folder contains files to start separate trackmania server and pyplanet containers with the :server & :pyplanet images.

New users should start with this example. The compose-legacy example exists only for those who have used the single :latest image before I separated it into :server & :pyplanet images and for those who want a simple single all-in-one container.

compose-legacy

This example folder contains files to start a trackmania server + pyplanet server container with the :latest legacy image.

Environment variables

SERVER_TITLE

The TitleID for the game the server should be running. By default set to Trackmania 2020. Possible values are:

  • Trackmania
  • SMStorm
  • TMCanyon
  • TMStadium
  • TMValley
  • TMLagoon

SERVER_NAME

The visible name for the server.

PyPlanet configuration

PyPlanet controller can be configured via compose-(example|legacy)/pyplanet/settings/*.yaml files. For documentation, go to: https://pypla.net/en/latest/intro/configuration.html

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.