Skip to content

Latest commit

 

History

History
37 lines (31 loc) · 1 KB

File metadata and controls

37 lines (31 loc) · 1 KB

Docker

This project ships with a Dockerfile using the uv base image.

Build

docker build -t opensentry-command:latest .

Run (Docker Desktop: Mac/Windows, or Linux without host networking)

docker run --rm -p 5000:5000 \
  -e HOST=0.0.0.0 -e PORT=5000 -e SECRET_KEY=change-me \
  -v "$PWD/config_store.json:/app/config_store.json" \
  opensentry-command:latest

Visit http://localhost:5000

  • If your OAuth2 server runs on the host, use http://host.docker.internal:8000 as the base URL in app settings.

Run (Linux with host networking)

For full mDNS support on native Linux Docker:

docker run --rm --network host \
  -e HOST=0.0.0.0 -e PORT=5000 -e SECRET_KEY=change-me \
  -v "$PWD/config_store.json:/app/config_store.json" \
  opensentry-command:latest

Then open the printed address (often http://127.0.0.1:5000).

Persist devices (optional)

# create the file once
touch devices_store.json
# then mount it
-v "$PWD/devices_store.json:/app/devices_store.json"