godarklight / DarkMultiPlayer

DarkMultiPlayer - A multiplayer mod for Kerbal Space Program
MIT License
282 stars 120 forks source link

Docker hub #451

Open Cyclic3 opened 6 years ago

Cyclic3 commented 6 years ago

Environment

Thank you very much!

tgxn commented 3 years ago

I created a Dockerfile to run this server in:

FROM alpine:latest as downloader

ARG DMP_VERSION
RUN wget  "https://d-mp.org/builds/release/${DMP_VERSION}/DMPServer.zip"
RUN unzip DMPServer.zip -d / -o

FROM mono:latest
COPY --from=downloader /DMPServer /DMPServer

WORKDIR /DMPServer
EXPOSE 6702
ENTRYPOINT ["mono", "./DMPServer.exe"]

I use this with docker-compose:

version: "3.3"
services:
  dark-mp:
    container_name: game_ksp_darkmp
    image: ksp-darkmp:local
    build:
      context: ./
      dockerfile: Dockerfile
      args:
        DMP_VERSION: v0.3.8.0
    ports:
      - "6702:6702"
    volumes:
      - "./ServerData/Config:/DMPServer/Config"
      - "./ServerData/Universe:/DMPServer/Universe"
      - "./ServerData/Plugins:/DMPServer/Plugins"
      - "./ServerData/logs:/DMPServer/logs"
    restart: unless-stopped
MattPlayGamez commented 2 years ago

It doesn't support web-sockets