mirror of
https://github.com/pocket-id/pocket-id.git
synced 2026-02-05 13:13:49 +00:00
2.2 KiB
2.2 KiB
id
| id |
|---|
| installation |
Installation
Before you start
Pocket ID requires a secure context, meaning it must be served over HTTPS. This is necessary because Pocket ID uses the WebAuthn API.
Installation with Docker (recommended)
-
Download the
docker-compose.ymland.envfile:curl -O https://raw.githubusercontent.com/stonith404/pocket-id/main/docker-compose.yml curl -o .env https://raw.githubusercontent.com/stonith404/pocket-id/main/.env.example -
Edit the
.envfile so that it fits your needs. See the environment variables section for more information. -
Run
docker compose up -d
You can now sign in with the admin account on http://localhost/login/setup.
Unraid
Pocket ID is available as a template on the Community Apps store.
Stand-alone Installation
Required tools:
-
Copy the
.env.examplefile in thefrontendandbackendfolder to.envand change it so that it fits your needs.cp frontend/.env.example frontend/.env cp backend/.env.example backend/.env -
Run the following commands:
git clone https://github.com/stonith404/pocket-id cd pocket-id # Checkout the latest version git fetch --tags && git checkout $(git describe --tags `git rev-list --tags --max-count=1`) # Start the backend cd backend/cmd go build -o ../pocket-id-backend cd .. pm2 start pocket-id-backend --name pocket-id-backend # Start the frontend cd ../frontend npm install npm run build pm2 start --name pocket-id-frontend --node-args="--env-file .env" build/index.js # Optional: Start Caddy (You can use any other reverse proxy) cd .. pm2 start --name pocket-id-caddy caddy -- run --config reverse-proxy/Caddyfile
You can now sign in with the admin account on http://localhost/login/setup.