Running Liquid IAM locally
Liquid IAM builds and runs via Docker (the Node/CRA frontend build is pinned to
Liquid IAM builds and runs via Docker (the Node/CRA frontend build is pinned to Node 20 inside the image, so build in Docker rather than on the host).
Build
docker build --target STANDARD -t liquid-iam:local .The STANDARD target compiles the React frontend and embeds it in the Go binary.
Run
docker run -d --name liquid-iam --user 0 \
-p 8000:8000 -v liquid-iam-data:/data liquid-iam:local--user 0- the container writes SQLite into the mounted/datavolume, which is root-owned; running as root avoids "out of memory (14)" / permission errors.-p 8000:8000- matcheshttpportinconf/app.conf.-v liquid-iam-data:/data- persists the SQLite DB (and all SSO config) across container recreimages.
Open http://localhost:8000.
Admin login
- Organization:
built-in - Username:
admin - Password:
123(dev default - change for any shared instance)
Lifecycle
docker stop liquid-iam # pause
docker start liquid-iam # resume (state persists in the volume)
docker rm -f liquid-iam # delete container (volume survives)
docker volume rm liquid-iam-data # wipe ALL IAM data (destructive)Configuration (conf/app.conf)
appname = liquid-iam
httpport = 8000
driverName = sqlite
dataSourceName = file:./data/liquid-iam.db
origin = "http://localhost:8000" # OIDC issuer (backend origin)
originFrontend = "http://localhost:8000" # where /login/oauth/authorize is served
runmode = devChanging the issuer (public URL)
The baked image ships origin = http://localhost:8000. To serve a public
issuer, both origin and originFrontend must be the public URL, and every
relying party's issuer config must match it exactly. In the running container:
docker exec liquid-iam sh -c \
"sed -i 's|http://localhost:8000|https://iam.example.com|g' /conf/app.conf"
docker restart liquid-iamRe-apply after each image rebuild (a fresh image resets
origin). The seeded SSO config persists in theliquid-iam-datavolume, so onlyoriginneeds re-applying.
Configure SSO
After the container is up, run the seed script to create the Google provider and the single-SSO application. See sso-setup.md:
export IAM_URL=http://localhost:8000
export GOOGLE_CLIENT_ID=... GOOGLE_CLIENT_SECRET=...
export ALLOWED_DOMAIN=satschel.com APP_ORG=liquidity APP_NAME=transfer-agent
python3 scripts/seed-sso.pyHealth / troubleshooting
- Discovery doc:
GET http://localhost:8000/.well-known/openid-configurationshould returnissuer== yourorigin. - SQLite can intermittently report "database is locked" under load - the seed
script retries on
SQLITE_BUSY; use Postgres for anything shared.