Skip to content

Latest commit

 

History

History
52 lines (33 loc) · 1.67 KB

File metadata and controls

52 lines (33 loc) · 1.67 KB

Docker

This folder has all the files required to create the docker containers for the hosted server. Instructions here can also be used to setup a local multiplayer server as well.

To start a local server bundled with three test players:

docker compose up --build

To run in detached mode:

docker compose up --build --detach

To stop the containers running in detached mode:

docker compose down

Local clients can specify the server as -s http://localhost

To start a hosted server on an example domain, say example.com:

SITE_ADDRESS=example.com docker compose up --build --detach

This is how the hosted server at https://box.servegame.com is started.

By default, there is no verbose logging and only errors from the server or client components get printed. To enable verbose logging, these can be passed through environment variables:

SERVER_PARAMS="-v" CLIENT_PARAMS="-v" SITE_ADDRESS="example.com" docker compose up --build

Here is how the output of that should look like:

docker compose output

Notes