Install with Docker
Build the OpenAuth image from the repository and run it in a container.
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 openauth2. 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 openauth4. Open http://localhost:8000/ and set a primary access token. See Protect the admin interface.
Stop, start and update
docker stop openauth
docker start openauthTo 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 openauthYour 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.