Quick start
View as MarkdownThis page gets a working InfraWard on http://localhost:8080 with the default settings: PostgreSQL, Redis and OpenBao all run in containers next to InfraWard. Use it to evaluate the product. For a server that other people will reach, follow Install with Docker Compose instead.
-
Get the deployment files.
Terminal window git clone --depth 1 https://github.com/InfraWard/infraward.gitcd infraward/deploy/examplecp .env.example .env -
Edit
.envand set the two values that have no default..env ADMIN_PASSWORD=choose-a-password-of-12-or-more-charactersPOSTGRES_PASSWORD=another-long-random-passwordADMIN_EMAILdefaults to[email protected]. Change it if you prefer to sign in with your own address. -
Prepare data directories, keys and OpenBao.
Terminal window ./init.shThe script takes about half a minute. It ends with
OpenBao listo (...)andSiguiente paso: docker compose up -d. -
Start the stack.
Terminal window docker compose up -dThe first start pulls the images and runs the database migrations. When
docker compose psshowsapiashealthy, open http://localhost:8080. -
Sign in with
ADMIN_EMAILandADMIN_PASSWORD, scan the QR code with your authenticator app, enter the 6-digit code and store the ten recovery codes somewhere safe. The initial setup page shows each screen. -
Add a server. For this local test, enrol the Linux machine that runs Docker: the enrolment command downloads its script from
localhost(see the note below). Go to Inventario → Añadir servidor (Inventory → Add server), enter that machine’s LAN IP address (not127.0.0.1: the address must reach its SSH server from inside a container) and select Generar comando de alta (Generate enrolment command). Run the command it shows on the same machine:Terminal window curl -fsSL --max-time 120 http://localhost:8080/api/enroll/<token> | sudo bashThe page moves through Conectando (Connecting) and Escaneando (Scanning) on its own. A few minutes later the server, its packages and its vulnerabilities appear in the inventory.
Clean up
Section titled “Clean up”To stop the stack and keep its data, run docker compose down. To remove everything, including the inventory, keys and OpenBao data, run:
docker compose downsudo rm -rf data secretsNext steps
Section titled “Next steps”- Requirements for a production server.
- Adding servers explains the access modes and what the enrolment script changes on each host.
- Concepts and architecture describes the services you just started.