ich777 / docker-xonotic-server

9 stars 1 forks source link

Please add Docker Compose YAML and .env file. #3

Closed colonelmattyman closed 5 months ago

colonelmattyman commented 6 months ago

DockerCompose.yaml

version: '3.8'
services:
  xonotic:
    image: ich777/xonotic:latest
    container_name: Xonotic
    environment:
      - GAME_PARAMS=${GAME_PARAMS}
      - GAME_VERSION=${GAME_VERSION}
      - UID=${UID}
      - GID=${GID}
      - BASIC_URL=${BASIC_URL}
    volumes:
      - ${XONOTIC_VOLUME}:/serverdata/serverfiles
    ports:
      - "3979:3979/tcp"
      - "3979:3979/udp"
    restart: unless-stopped

xonotic.env

GAME_PARAMS=
GAME_VERSION=0.8.2
UID=99
GID=100
BASIC_URL=https://dl.xonotic.org/
XONOTIC_VOLUME=/mnt/user/appdata/xonotic
ich777 commented 6 months ago

May I ask if the UID and GID are correct? This specific settings are usually for Unraid.

colonelmattyman commented 6 months ago

I used 1000 and 1000 for mine (on Ubuntu Docker) and it works great.

ich777 commented 5 months ago

Added.