Skip to content

Docker example (port) does not work #399

@jonocodes

Description

@jonocodes

Following the directions in the docs here:
https://www.triplit.dev/docs/self-hosting/docker

docker run -p 8080:6543 -e LOCAL_DATABASE_URL="./app.db" aspencloud/triplit-server

Then I open:

https://console.triplit.dev/localhost:6543

and I expect to be connected to the db. Is this not the case?
What is the token? Do I need to set one? The instructions dont say. This is inconstant since the dev docker server comes with a baked in token.

After much trial and error I found I need to explicitly set the JWT_TOKEN. And additionally the ports in the command are reversed. So this works:

docker run -p 6543:8080 -e JWT_SECRET="...." -e LOCAL_DATABASE_URL="./app.db" aspencloud/triplit-server

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions