Sign inSign up

lihaixin/realm

By lihaixin

Updated 6 months ago

realm

Image
0

2.3K

lihaixin/realm repository overview

realm - A simple, high-performance relay server

zhboner/realm is a simple, high-performance relay server written in Rust. It's designed to be a lightweight and efficient alternative to other relay tools like iptables or gost.

Official Website: https://github.com/zhboner/realm

🚀 Docker Compose Usage

To deploy this service using docker-compose, create a docker-compose.yml file with the following configuration:

version: '3.8'

services:
  realm:
    image: lihaixin/realm:latest
    container_name: realm
    restart: always
    environment:
      - NO=""                  # Authorization code (Leave empty for automatic online fetching)
      - TYPE=realm             # Transport mode (Options: realm, realm-client-tls, realm-server-wss, etc.)
      - LISTEN=0.0.0.0:10001   # Local listening address and port (Supports range: 0.0.0.0:10001-10010)
      - REMOTE=example.com:443 # Remote destination address and port
    # network_mode: "host"     # Recommended for high performance

> <p data-quote-type="tip">Tip</p>
> **Multi-port Forwarding**: This image supports port ranges. You can set `LISTEN=0.0.0.0:10000-10050`. If `REMOTE` is a single port, all local ports will map to that remote port. If `REMOTE` is also a range (e.g., `remote:20000-20050`), it will map one-to-one.

Run the following command to start the service:

docker-compose up -d

Powered by GitHub Actions

Tag summary

Content type

Image

Digest

sha256:bb118f50b

Size

48.2 MB

Last updated

6 months ago

docker pull lihaixin/realm