Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/vollborn/minecraft-nginx-reverse-proxy
A simple nginx reverse proxy for minecraft servers
https://github.com/vollborn/minecraft-nginx-reverse-proxy
docker docker-compose minecraft nginx nginx-proxy nginx-stream proxy server stream
Last synced: about 3 hours ago
JSON representation
A simple nginx reverse proxy for minecraft servers
- Host: GitHub
- URL: https://github.com/vollborn/minecraft-nginx-reverse-proxy
- Owner: vollborn
- Created: 2022-01-20T15:40:31.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2024-05-12T15:57:09.000Z (6 months ago)
- Last Synced: 2024-05-12T16:50:41.721Z (6 months ago)
- Topics: docker, docker-compose, minecraft, nginx, nginx-proxy, nginx-stream, proxy, server, stream
- Language: Dockerfile
- Homepage: https://hub.docker.com/r/vollborn/minecraft-nginx-reverse-proxy
- Size: 13.7 KB
- Stars: 15
- Watchers: 1
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Minecraft NGINX Reverse Proxy
This project is based on [tekn0irs](https://github.com/tekn0ir) [nginx-stream](https://github.com/tekn0ir/nginx-stream).
## Requirements
- A webserver with a static IP address supporting Docker## Setup
This image is available at [Docker Hub](https://hub.docker.com/r/vollborn/minecraft-nginx-reverse-proxy).
### Using docker run
You can run it by using the following command:
```shell
docker run -p 25565:25565 -e INITIAL_HOST= -e INITIAL_PORT= vollborn/minecraft-nginx-reverse-proxy
```### Using docker compose
You can also use docker-compose.
Example docker-compose.yml:
```yml
version: "3.8"services:
proxy:
image: vollborn/minecraft-nginx-reverse-proxy
restart: unless-stopped
ports:
- "${LOCAL_PORT:-25565}:25565"
environment:
INITIAL_HOST:
INITIAL_PORT:
# TZ: "Europe/Berlin"
```Here we go.
You should be up and running!## Development Setup
Clone this project to your webserver.
```
git clone https://github.com/vollborn/minecraft-nginx-reverse-proxy.git
```Enter the cloned directory.
```shell
cd minecraft-nginx-reverse-proxy
```Then you need to copy the .env.example file. For that, run:
```shell
cp .env.example .env
```Run docker-compose build to build the container.
```shell
docker-compose build
```### Starting the development container
You can start the container by executing this command:
```shell
docker-compose up -d
```To change the host IP address or port without restarting the container, you can to execute the following command:
```shell
# Windows
sethost# Linux
bash ./sethost.sh
```Examples:
```shell
# Windows
sethost 192.168.178.99 25565# Linux
bash ./sethost.sh 192.168.178.99 25565
```