Sign inSign up

krustowski/samp-server-docker

By krustowski

Updated over 4 years ago

GTA SA:MP Linux Server in Docker

Image
1

1.4K

krustowski/samp-server-docker repository overview

GTA SA:MP Linux Server in Docker

Very simple docker image for running GTA SA:MP Server 0.37 R2-1. The image can be pulled from Docker hub:

Run image

docker run -d -p 7777:7777 -p 7777:7777/udp --name samp-server krustowski/samp-server-docker

It it vital to forward both TCP and UDP ports!

Build image

Image can be built using Dockerfile as well on the local machine:

docker build . -t samp-server-built-image
docker run -d -p 7777:7777 -p 7777:7777/udp --name samp-server2 samp-server-built-image

Check connection

Thanks to https://github.com/mick88/samp-client

Connection, actual status (players, weather, map, hostname) and RCON access can be done using:

pip3 install samp-client
python3 check_server.py 127.0.0.1 7777

TODO

  • docker-compose implementation! + easy scaling
  • custom volume mounting (custom configs, gamemodes, env stuff)
  • pass server config fields using Docker ENV constants at docker run
  • forward server_log.txt to docker logs (done)
  • fail2ban implementation for RCON brute-force attacks

Tag summary

Content type

Image

Digest

Size

61.4 MB

Last updated

over 4 years ago

docker pull krustowski/samp-server-docker