Full Development Docker Compose
This Docker Compose is intended for running a full development environment for Rivet.
Prerequisites
- Docker
- Docker Compose
Required ports
The following ports need to be open before running Rivet:
Service | Description | Optional | Port |
---|---|---|---|
Rivet Server | API | 8080 | |
Object Storage | 9000 | ||
Rivet Guard | HTTP | 7080 | |
HTTPS | 7443 | ||
TCP & UDP | X | 7500-7599 | |
Rivet Client | Host Networking | X | 7600-7699 |
Operation
Start
Start the cluster with:
This will start the cluster in detached mode. Once complete, visit the dashboard at http://localhost:8080.
To test creating an actor end-to-end, run:
You should see an actor in the actor list in the dashboard.
Stop
To shut down the Rivet cluster, run:
When you start the cluster again, your data will still be there.
Nuke from orbit
To destroy all containers & volumes immediately, run:
Development
Rebuilding
To rebuild all services, run:
To rebuild just the server, run:
Logs
To fetch logs for a service, run:
Following
To follow logs, run:
Grep
It's common to use grep (or the more modern ripgrep) to filter logs.
For example, to find all errors in rivet-server
with the 10 preceding lines, run:
Logs for rivet-server
and rivet-client
can also be configured via the environment. See here for
more information.
Caveats
The docker compose currently only supports host networking and host ports.
Read more about host networking and ports here.
Troubleshooting
Have you tried turning it off and on again?
If something gets really screwed up, you can destroy the entire cluster with:
This will destroy all containers & volumes immediately.