/container-jts3servermod

JTS3ServerMod by Stefan1200 as a Container Image.

Primary LanguageDockerfileApache License 2.0Apache-2.0

container-jts3servermod

JTS3ServerMod by Stefan1200 as a Container Image.

Container Image available from:

Container Image Tags:

  • main - Latest build of the main branch.
  • vYYYYmmdd-HHMMSS-NNN - Latest build of the application with date of the build.

Usage

You can inject your config into the container by using the directory (on first start the default configs will be copied to the directory): /jts3servermod/config.

Updating the image

Run the below command, to update the image to the latest version:

Quay.io Docker Image:

docker pull quay.io/galexrt/jts3servermod:latest

Or for the GHCR.io image:

docker pull ghcr.io/galexrt/jts3servermod:latest

Permissions

The default UID of the user which is used in the container is 3000. So if you mount a directory from your host you have to set the permission to the user with the UID of 3000.

mkdir -p /opt/docker/jts3servermod/config
chown -R 3000:3000 /opt/docker/jts3servermod/config
mkdir -p /opt/docker/jts3servermod/config
chown -R 3000:3000 /opt/docker/jts3servermod

Change UID and GID

To change the UID and GID during build you should set through Docker build args:

JTS3_USER=3000
JTS3_GROUP=3000

Mount host directory

docker run \
    --name jts3servermod \
    -d \
    -v /opt/docker/jts3servermod:/jts3servermod/config \
    quay.io/galexrt/jts3servermod:latest

SELinux

If your host uses SELinux it may be necessary to use / add the :z option:

docker run \
    --name jts3servermod \
    -d \
    -v /opt/docker/jts3servermod/config:/jts3servermod/config:z \
    quay.io/galexrt/jts3servermod:latest

Kubernetes + Helm

A Helm Chart is available under the charts/ directory.