Docs: Deployment
Deployment
Run a server install in Docker, for yourself or shared with a team.
Note: Without sign-in, anyone who can reach the port has full control of every broker you’ve added, so publish it on
127.0.0.1only.
Share with a team
Turn sign-in on, which needs a Team license:
docker run -d --name redrive \
-p 8080:8080 \
-v redrive-data:/data \
-e REDRIVE_AUTH=users \
-e REDRIVE_LICENSE_KEY=RDRV-XXXXX-XXXXX-XXXXX-XXXXX \
redrive/redriveSee Turn on sign-in for more information.
Contracts from a file
To manage contract packages without the app, put a contracts.json in the data directory. Redrive reads it at startup and makes the feeds and packages match it:
{
"feeds": [
{
"name": "internal",
"url": "https://pkgs.example.com/v3/index.json",
"username": "svc-redrive",
"passwordEnv": "FEED_TOKEN"
}
],
"packages": [
{ "id": "Acme.Orders.Contracts", "version": "2.4.0", "feed": "internal" }
]
}Redrive removes anything the file doesn’t declare, the default nuget.org feed included. passwordEnv names an environment variable to read the password from.
If contracts.json is present, you will not be able to install packages or edit feeds from within Redrive.
Upgrading Redrive
Note: Don’t start an older version on a database a newer one has migrated. If you might need to go back, copy the data directory before you upgrade.