Files verschoben und Docker-Compose erstellt.
This commit is contained in:
9
.dockerignore
Normal file
9
.dockerignore
Normal file
@@ -0,0 +1,9 @@
|
||||
# Git
|
||||
.git
|
||||
.gitignore
|
||||
|
||||
# IDE
|
||||
.vscode
|
||||
|
||||
# Docs
|
||||
README.md
|
||||
@@ -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
|
||||
|
||||
0
AdminServ_v2.1.1.zip → assets/bin/AdminServ_v2.1.1.zip
Executable file → Normal file
0
AdminServ_v2.1.1.zip → assets/bin/AdminServ_v2.1.1.zip
Executable file → Normal file
22
docker-compose.yml
Normal file
22
docker-compose.yml
Normal 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
|
||||
Reference in New Issue
Block a user