-
Notifications
You must be signed in to change notification settings - Fork 76
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: reorganize self-hosting documentation
- Loading branch information
1 parent
edcf200
commit 235fe43
Showing
7 changed files
with
163 additions
and
106 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,52 @@ | ||
# Full Development Docker Compose | ||
|
||
## Operating | ||
|
||
Find our docs [here](https://rivet.gg/docs/self-hosting/docker-compose). | ||
|
||
## Development | ||
|
||
### Rebuilding | ||
|
||
To rebuild all services, run: | ||
|
||
```bash | ||
docker compose -f docker/dev-full/docker-compose.yml up -d --build | ||
``` | ||
|
||
To rebuild just the server, run: | ||
|
||
```bash | ||
docker compose -f docker/dev-full/docker-compose.yml up -d --build rivet-server | ||
``` | ||
|
||
### Logs | ||
|
||
To fetch logs for a service, run: | ||
|
||
```bash | ||
docker compose -f docker/dev-full/docker-compose.yml logs {name} | ||
``` | ||
|
||
#### Following | ||
|
||
To follow logs, run: | ||
|
||
```bash | ||
docker compose -f docker/dev-full/docker-compose.yml logs -f {name} | ||
``` | ||
|
||
#### Grep | ||
|
||
It's common to use grep (or the more modern | ||
[ripgrep](https://www.google.com/search?q=ripgrep&oq=ripgrep&sourceid=chrome&ie=UTF-8)) to filter logs. | ||
|
||
For example, to find all errors in `rivet-server` with the 10 preceding lines, run: | ||
|
||
```bash | ||
docker compose -f docker/dev-full/docker-compose.yml logs rivet-server | grep -B 10 level=error | ||
``` | ||
|
||
Logs for `rivet-server` and `rivet-client` can also be configured via the environment. See [here](/docs/self-hosting/client-config) for | ||
more information. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
# Local Development & Single Container | ||
|
||
A full Rivet cluster can be ran in a single container for use cases like: | ||
|
||
- Develop your app with a local Rivet cluster | ||
- Including in an existing Docker Compose project | ||
- Quick, single-node deployments | ||
|
||
## Prerequisites | ||
|
||
- Docker | ||
|
||
## Operation | ||
|
||
### Run with Docker CLI | ||
|
||
Start a Rivet cluster: | ||
|
||
<Tabs> | ||
<Tab title="Recommended"> | ||
|
||
Run Rivet with: | ||
|
||
```sh | ||
docker run --name rivet -v "$(pwd)/rivet-data:/data" -p 8080:8080 -p 9000:9000 -p 7080:7080 -p 7443:7443 -p 7500-7599:7500-7599 -p 7600-7699:7600-7699 --platform linux/amd64 rivetgg/rivet | ||
``` | ||
|
||
This runs Rivet with HTTP, TCP, and UDP networking support. | ||
|
||
</Tab> | ||
<Tab title="Limited Networking"> | ||
|
||
If you don't need TCP & UDP support (which is common), you can run Rivet with just HTTP support: | ||
|
||
```sh | ||
docker run --name rivet -v "$(pwd)/rivet-data:/data" -p 8080:8080 -p 9000:9000 -p 7080:7080 -p 7443:7443 --platform linux/amd64 rivetgg/rivet | ||
``` | ||
|
||
This is sometimes needed if the port ranges required above have port conflicts with other software on your computer. | ||
|
||
</Tab> | ||
</Tabs> | ||
|
||
Data will be stored in a folder named `rivet-data` in your current directory. | ||
|
||
Next, follow the [setup guide](/docs/setup). | ||
|
||
### Integrate in to existing Docker Compose | ||
|
||
Integrate in to an existing project's Docker Compose with: | ||
|
||
```yaml | ||
services: | ||
rivet: | ||
image: rivetgg/rivet | ||
platform: linux/amd64 | ||
volumes: | ||
- rivet-data:/data | ||
ports: | ||
- "8080:8080" | ||
- "9000:9000" | ||
- "7080:7080" | ||
- "7443:7443" | ||
# Optional: Rivet Guard TCP & UDP | ||
- "7500-7599:7500-7599" | ||
# Optional: Host networking TCP & UDP | ||
- "7600-7699:7600-7699" | ||
|
||
volumes: | ||
rivet-data: | ||
``` | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters