GithubHelp home page GithubHelp logo

donishki / enemy-territory-1 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from archont94/enemy-territory

0.0 0.0 0.0 8 KB

Docker Image for a dedicated Wolfenstein: Enemy Territory server with ETTV and ETPro.

License: MIT License

Shell 8.54% Dockerfile 91.46%

enemy-territory-1's Introduction

Wolfenstein: Enemy Territory Docker Server

Docker Image for a dedicated Wolfenstein: Enemy Territory server with ETTV and ETPro.

Usage

The fastest way to set this up is to pull the image and start it via docker run.

docker pull archont94/enemy-territory
docker run -d --name et-server -p 27960:27960/udp -p 27960:27960 archont94/enemy-territory:latest

In order to edit config files, log inside container with docker exec -it CONTAINER_ID bash. After that you can run nano editor and modify files.

Available environment variables

Variable Value
PORT 27960
MAXPLAYERS 32
PUNKBUSTER 1

Custom config files

You can add you own server.cfg (or any other file) by linking them as volumes into the image.

-v /path/to/your/server.cfg:/et/etpro/server.cfg

The complete command looks like this:

docker run -d --name et-server -p 27960:27960/udp -p 27960:27960 -v /path/to/your/server.cfg:/et/etpro/server.cfg archont94/enemy-territory:latest

Example server.cfg

//=========================Server Passwords======================//
set g_password "mypassword"             // set to password protect the server 
set sv_privateclients "0"     // if set > 0, then this number of client slots will be reserved for connections 
set sv_privatepassword ""     // that have "password" set to the value of "sv_privatePassword" 
set rconpassword "myrcon"  // remote console access password 
set refereePassword "myreferee"  // referee status password 
set b_shoutcastpassword "myshoutcast" // Shoutcast login

//=============================DL, RATE==========================//
set sv_maxRate "25000"
set sv_dl_maxRate "2048000"
set sv_allowDownload "1"
set sv_wwwDownload "1"
set sv_wwwBaseURL "https://www.gamestv.org/download/repository/et/"
set sv_wwwDlDisconnected "0"
set sv_wwwFallbackURL ""

//=============================MOD, ECT==========================// 
set sv_hostname  "My Server Name"              // name of server here 
set server_motd0 " "              // message in right corner of join screen here 
set server_motd1 " " 
set server_motd2 " "
set server_motd3 " "
set server_motd4 " "
set server_motd5 " "

//==========================MASTER SERVERS==========================//
// The master servers are unset, which means your server will not appear on the list
// This is to avoid DDoS attacks, delete the next 5 lines if you want your server to reappear on the list

set sv_master1 ""
set sv_master2 ""
set sv_master3 ""
set sv_master4 ""
set sv_master5 ""

//=========================STARTUP======================//
map radar
wait 300
config global3
wait 150
config global3

//=========================LOG SETTINGS======================//
set g_log "etserver.log"
set g_logsync 0
set logfile 0

//============================ETTV===========================//
set ettv_sv_maxslaves "2"
set ettv_password "3ttv"
set b_ettv_flags "3"

// Maximum number of clients per IP address
set ip_max_clients 2

Additional maps

In order to install additional maps, you need to put them inside /et/etmain folder.

In order to copy files to docker you can use docker cp command:

docker cp MAP_DIRECTORY CONTAINER_ID:/et/etmain

Be careful to not overwrite other files. Before any changes, you can always use docker commit command to create image with your changes, which you can restore easily later.

enemy-territory-1's People

Contributors

archont94 avatar

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.