Files verschoben und Docker-Compose erstellt.

This commit is contained in:
2026-03-18 12:49:22 +01:00
parent ccad6d98d6
commit f57da6009d
5 changed files with 33 additions and 2 deletions

9
.dockerignore Normal file
View File

@@ -0,0 +1,9 @@
# Git
.git
.gitignore
# IDE
.vscode
# Docs
README.md

View File

@@ -4,14 +4,14 @@ RUN mkdir /opt/tmserver
WORKDIR /opt/tmserver
COPY TrackmaniaServer_2011-02-21.zip /opt/tmserver
COPY assets/bin/TrackmaniaServer_2011-02-21.zip /opt/tmserver
RUN apt-get update && apt-get install -y unzip
RUN unzip /opt/tmserver/TrackmaniaServer_2011-02-21.zip -d /opt/tmserver
COPY custom_game_settings.txt /opt/tmserver/GameData/Tracks/MatchSettings/
COPY RunTrackmaniaServer.sh /opt/tmserver/
RUN apt-get -y install apache2 php php-zip php-xml
COPY AdminServ_v2.1.1.zip /var/www/html
COPY assets/bin/AdminServ_v2.1.1.zip /var/www/html
RUN unzip /var/www/html/AdminServ_v2.1.1.zip -d /var/www/html
RUN chmod -R 777 /var/www/html/
RUN rm -f /var/www/html/index.html

View File

22
docker-compose.yml Normal file
View File

@@ -0,0 +1,22 @@
services:
tmserver:
build:
context: .
args:
SERVER_NAME: "Trackmania Server"
SERVER_DESC: "This is a Trackmania Server"
SERVER_SA_PASSWORD: "SuperAdmin"
SERVER_ADM_PASSWORD: "Admin"
container_name: tmserver
restart: unless-stopped
ports:
- "2350:2350/tcp"
- "2350:2350/udp"
- "3450:3450/tcp"
- "5000:5000/tcp"
- "80:80/tcp"
environment:
- SERVER_NAME=Trackmania Server
- SERVER_DESC=This is a Trackmania Server
- SERVER_SA_PASSWORD=SuperAdmin
- SERVER_ADM_PASSWORD=Admin