-
Notifications
You must be signed in to change notification settings - Fork 2
Setup
If you're on a desktop, Docker Desktop is the easiest way to install Docker. Otherwise, see the Docker documentation for how you should install.
If you're on linux, you may need to add your user to the docker group.
sudo usermod -aG docker $USERWhile you can run the API without authentication by setting AUTH_PROVIDERS to an empty string, it is highly recommended to set up at least one method of authentication, especially if your API will be accessible from the internet.
Currently, we support Discord and generic OIDC as authentication providers.
See Authentication for more info on setting up a specific auth provider.
Discord is the easiest and recommended.
docker run --rm ghcr.io/cclloyd/planeshift:latest gen_secretTake note of the secret generated, and set SECRET_KEY to it in your docker-compose.yml
Fill in the required env vars above in the provided docker-compose.yml file.
For PlaneShift this includes
- Your secret key
- database credentials
- Auth provider credentials for at least one provider
- Foundry credentials
For mongo, just change the default password to something else.
If you need to create the database first ensure mongo is running
docker compose up -d mongoThen enter a mongo shell
docker compose exec -it mongo mongosh -u planeshift
<enter your password>
use planeshift;
db.createUser({
user: "planeshift",
pwd: "planeshift",
roles: [
{ role: "dbOwner", db: "planeshift" }
]
});Once you have done all the above, you can start the API
docker compose up -dNow you can access it at whatever url you set up, or localhost:3000 if you're just running it locally.
You can see the full schema available at /api/swagger.