Giter Club home page Giter Club logo

samp-server-docker's Introduction

GTA San Andreas Multiplayer (SA:MP) Linux Server in Docker (~128 MB)

Very simple docker image for running GTA SA:MP Server 0.37 R2-1.

Docker Hub:

Original Linux server tar.gz can be found here (included in this repo):

Run image (using Makefile)

The easiest way is using Makefile (gnumake) and .env (core constants) files:

# edit the constants (eg. EXTERNAL_PORT)
vi .env

# show possible commands (targets)
make

# build the image and run the container locally
make deploy

# test server connection using python package 'samp-client' (installed by pip)
# credit: https://github.com/mick88/samp-client
make test
bin/check_server.py 127.0.0.1 7777

# show game logs (continuous fetching)
make logs

# stop/delete the server
make stop

Run image "manually"

Pull the image from Docker Hub and run it

docker run -d --rm -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

TODO (nice-to-have)

  • custom volume mounting (custom configs, gamemodes, env stuff)
  • fail2ban implementation for RCON brute-force attacks

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.