Merge pull request #206 from Nowaker/patch-1

README.md: Kubernetes
This commit is contained in:
Alex Sosnovskiy 2020-10-10 13:28:13 +03:00 committed by GitHub
commit f4fefa382f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -17,6 +17,9 @@ Run your own server on Gitpod!
## Usage
### Run server
#### Natively
If you don't want to develop anything, just enter few commands below.
1. Install the package globally:
@ -31,11 +34,19 @@ If you don't want to develop anything, just enter few commands below.
```
3. Check it: http://127.0.0.1:9000/myapp It should returns JSON with name, description and website fields.
#### Docker
Also, you can use Docker image to run a new container:
```sh
$ docker run -p 9000:9000 -d peerjs/peerjs-server
```
##### Kubernetes
```sh
$ kubectl run peerjs-server --image=peerjs/peerjs-server --port 9000 --expose -- --port 9000 --path /myapp
```
### Create a custom server:
If you have your own server, you can attach PeerServer.