Update README with improved example deployment options

This commit is contained in:
Tobie Morgan Hitchcock 2016-07-05 20:14:51 +01:00
parent 6411fc89ae
commit e9e0540310

View file

@ -63,15 +63,15 @@ surreal start --port-web 8000
#### Clustering #### Clustering
```bash ```bash
surreal start --port-web 8000 --port-tcp 33693 --join localhost:33693 surreal start --port-web 8000 --port-tcp 33693 --db-path surreal-1.db --join localhost:33693 --log-level debug
surreal start --port-web 8001 --port-tcp 33694 --join localhost:33693 surreal start --port-web 8001 --port-tcp 33694 --db-path surreal-2.db --join localhost:33693 --log-level debug
surreal start --port-web 8002 --port-tcp 33695 --join localhost:33693 surreal start --port-web 8002 --port-tcp 33695 --db-path surreal-3.db --join localhost:33693 --log-level debug
``` ```
#### Deployment #### Deployment
```bash ```bash
docker run --name surreal-1 abcum/surreal start --port-web 8000 --port-tcp 33693 --join localhost:33693 docker run --name surreal-1 abcum/surreal start --port-web 8000 --port-tcp 33693 --join localhost:33693 --log-level debug
docker run --name surreal-2 abcum/surreal start --port-web 8001 --port-tcp 33694 --join localhost:33693 docker run --name surreal-2 abcum/surreal start --port-web 8001 --port-tcp 33694 --join localhost:33693 --log-level debug
docker run --name surreal-3 abcum/surreal start --port-web 8002 --port-tcp 33695 --join localhost:33693 docker run --name surreal-3 abcum/surreal start --port-web 8002 --port-tcp 33695 --join localhost:33693 --log-level debug
``` ```