We reccommend to run docker-compose.yml than docker run to have better control on your server
To gain your own config.json, we recommend to start the server binary on your system to generate server_identifier. but at bottom we gave the example config you can use
Dont forget to change server_identifier to somentig else!
config.json
{
"server_name": "My KissMP Server",
"description": "My Server Description",
"map": "/levels/smallgrid/info.json",
"max_players": 15,
"tickrate": 60,
"port": 3698,
"max_vehicles_per_client": 5,
"show_in_server_list": true,
"server_identifier": "zYd\\3n#'JA"
}How to setup server
- Make sure you have
dockeranddocker-composeinstalled on your system! - Put
config.jsonanddocker-compose.ymlinto your server directory - If you want add mods or addons create folders in same directory as
step 2name itmodsor/andaddons - Edit
config.jsonanddocker-compose.ymlto your preffer - Start server by using
docker-compose up -d - Try to join and review if everything is working!
- To stop or restart server use
docker-compose downordocker-compose restart
--- You can use Portainer.io to manage your server from browser
docker-compose.yml
---
version: "3"
services:
kissmp:
image: bartixxx32/kissmpbase:latest
ports:
- "3698:3698/udp"
restart: unless-stopped
volumes:
- ./config.json:/server/config.json
- ./mods/:/server/mods/
- ./addons/:/server/addons/
---