Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

Awesome Lists containing this project

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
```