Set up OpnForm locally for development using Docker
http://localhost:3000/setup
and you’ll be guided through the setup process.
.env
files needed
package.json
has changed and only reinstalls when necessary
/
, /api/*
,
/forms/*
) through the standard Laravel front controller pattern. The
frontend is accessed directly on port 3000, eliminating redundant proxying.host=db
localhost:5432
Use IPv4 address
http://127.0.0.1:3000
instead of http://localhost:3000
localhost
can resolve to IPv6 (::1
) on some systems, causing connection issues with Docker’s port binding.Check container logs
bash docker compose -f docker-compose.dev.yml logs ui
Look for: "Dependencies up to date, skipping install"
and "➜ Local: http://0.0.0.0:3000/"
Restart containers if needed
.env
files needed:
forge/forge
credentialsdocker-compose.dev.yml
.
.env
files. All configuration is embedded in
docker-compose.dev.yml
for simplicity. To modify variables, edit the
environment:
section directly in that file.