This is a demo of how you can run Authgear with Docker Compose locally.
WARNING: NOT FOR PRODUCTION USE
This setup is intended for local development and demonstration purposes only. It uses insecure default credentials and configuration that are not suitable for production. If you intend to deploy Authgear in production, you must:
- Review and replace all environment variables and secrets in the
envfile (e.g. database passwords, secret keys, JWT secrets)- Update all origins (e.g. allowed origins, redirect URIs, CORS settings) to match your actual domain
- Disable
DEV_MODE(set totrueinenvby default)
Migrations and bucket creation run automatically on startup.
docker compose up./setup.shThis creates the project config, uploads it, creates an admin user (user@example.com / secretpassword),
and grants portal access. Override credentials via env vars if needed:
ADMIN_EMAIL=you@example.com ADMIN_PASSWORD=yourpassword ./setup.shVisit http://localhost:8010 and sign in with your admin account.
You need not go through the steps again if you shut down server, and want to restart.
You just run
docker compose up