Spanish Total.js
English
Documentation For AI agents
Contents

Install with Docker

Build the OpenAuth image from the repository and run it in a container.

.md GitHub
On this page

The repository has a Dockerfile. You need Docker and Git.

Build and run

1. Get the code and open its folder:

git clone https://github.com/totaljs/openauth.git
cd openauth

2. Build the image:

docker build -t openauth .

3. Start a container. The volume openauth keeps your data when the container is replaced:

docker run -d --name openauth -p 8000:8000 -v openauth:/www openauth

4. Open http://localhost:8000/ and set a primary access token. See Protect the admin interface.

Stop, start and update

docker stop openauth
docker start openauth

To update, pull the new code, build the image again, remove the old container and start a new one with the same volume:

git pull
docker build -t openauth .
docker rm -f openauth
docker run -d --name openauth -p 8000:8000 -v openauth:/www openauth

Your tokens, provider settings and the sign-in log stay in the volume. Inside the container they are in /www/.src/databases. See The data folder.

Sign-ins in progress are kept in memory, so a restart cancels them. Users who were in the middle of signing in start again.

Made in Europe