Skip to content

Instantly share code, notes, and snippets.

@broot5
Last active July 3, 2024 01:29
Show Gist options
  • Save broot5/faf7d2a21ad2bd320b7bc669125650d6 to your computer and use it in GitHub Desktop.
Save broot5/faf7d2a21ad2bd320b7bc669125650d6 to your computer and use it in GitHub Desktop.
ZenithProxy with Docker Compose

ZenithProxy with Docker Compose

How to Use

  1. Place the Dockerfile and docker-compose.yml in the same directory.
  2. Run docker compose up -d.
  3. Run docker compose attach zenith-proxy and press Enter to setup.
  4. If you want to use a port other than 25565, change the port settings in the docker-compose.yml file accordingly.
  5. To detach, press Ctrl+P followed by Ctrl+Q.

How to Access Configuration Files Directly

  1. Check the volume name by running docker volume ls (usually zenith-proxy_zenith-config).
  2. Execute docker run --rm -it --mount type=volume,source=<volume_name>,target=/config ubuntu:latest bash to access the configuration files.
services:
zenith-proxy:
build: ./
container_name: zenith-proxy
restart: unless-stopped
stdin_open: true
tty: true
ports:
- "25565:25565/tcp"
volumes:
- zenith-config:/app
volumes:
zenith-config:
FROM ubuntu:latest
WORKDIR /app
RUN apt update && apt upgrade -y && apt install -y \
wget \
unzip
RUN wget https://github.com/rfresh2/ZenithProxy/releases/download/launcher-v3/ZenithProxy-launcher-linux-amd64.zip && unzip ZenithProxy-launcher-linux-amd64.zip
ENTRYPOINT ["/app/launch"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment