Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/zhboner/realm
A network relay tool
https://github.com/zhboner/realm
relay-server rust
Last synced: about 1 month ago
JSON representation
A network relay tool
- Host: GitHub
- URL: https://github.com/zhboner/realm
- Owner: zhboner
- License: mit
- Created: 2020-05-08T15:46:10.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2024-10-16T11:54:57.000Z (about 2 months ago)
- Last Synced: 2024-10-18T08:13:21.476Z (about 2 months ago)
- Topics: relay-server, rust
- Language: Rust
- Size: 759 KB
- Stars: 1,540
- Watchers: 18
- Forks: 285
- Open Issues: 5
-
Metadata Files:
- Readme: readme.container.md
- License: LICENSE
Awesome Lists containing this project
- awesome-starred - zhboner/realm - A network relay tool (rust)
README
# Use realm in container
We push the OCI-based image to [Github Container Registry](https://ghcr.io) with name: `ghcr.io/zhboner/realm`.
These are some tag of this image:
- `latest`, `v1.*` base on debian:bullseye-silm, recommend
- `alpine`, `v1.*-alpine` base on alpine:latest## Docker
```bash
docker run -d -p 9000:9000 ghcr.io/zhboner/realm:latest -l 0.0.0.0:9000 -r 192.168.233.2:9000
```## Docker Swarm (Docker Compose)
```yaml
# ./realm.yml
version: '3'
services:
port-9000:
image: ghcr.io/zhboner/realm:latest
ports:
- 9000:9000
command: -l 0.0.0.0:9000 -r 192.168.233.2:9000
``````bash
docker-compose -f ./realm.yml -p realm up -d
```## Kubernetes
```yaml
# ./realm.yml
apiVersion: apps/v1
kind: Deployment
metadata:
name: realm-demo-deployment
labels:
app: realm
namespace: default
spec:
replicas: 1
selector:
matchLabels:
app: realm
template:
metadata:
labels:
app: realm
spec:
containers:
- name: realm
image: ghcr.io/zhboner/realm:latest
args:
- "-l=0.0.0.0:9000"
- "-r=192.168.233.2:9000"
ports:
- containerPort: 9000
resources:
requests:
memory: "64Mi"
cpu: "250m"
limits:
memory: "128Mi"
cpu: "500m"
---
apiVersion: v1
kind: Service
metadata:
name: realm-lb
namespace: default
spec:
type: LoadBalancer
selector:
app: realm
ports:
- name: edge
port: 9000
```