Install Reflex
This page helps you install the Reflex server and a first agent, and lists what to change before real use.
The server holds projects, jobs and secrets. The agent runs the scripts.
Requirements
Section titled “Requirements”- A BQA account to download releases and pull images. See Access, downloads and Maven.
- Docker, or Java 21 or newer.
- Ports
7000(server) and7001(agent) free.
Option A: Docker Compose
Section titled “Option A: Docker Compose”- Download
reflex.zipfrom the releases page and unzip it. - Log in to the image registry with a Gitea token that can read packages:
Terminal window echo "$TOKEN" | docker login git.bqa-solutions.nl -u <username> --password-stdin - Start the stack:
Terminal window docker compose up -d
The bundled docker-compose.yaml runs the reflex and agent services. It mounts the projects, database and config folders next to the file. Do not delete the empty config/application.yaml files: Docker needs them as files.
Option B: Release zip
Section titled “Option B: Release zip”- Download and unzip
reflex.zipas above. - Start both services:
Terminal window chmod +x run.sh./run.sh # uses the Java on your PATH./run.sh true # downloads a JRE first
To run a service by hand, start java -jar reflex.jar in reflex/ and java -jar agent-<os>-<arch>.jar in agent/ (for example agent-linux-x64.jar).
For a systemd setup, see server/README.md.
Sign in
Section titled “Sign in”Open http://localhost:7000 and sign in as admin / admin.
Change the password now: open your profile, enter the current password and a new one (at least 8 characters). The admin account is only created on the first start, so changing DEFAULT_PASSWORD later has no effect.
Add an agent
Section titled “Add an agent”Scripts only run when a project has an online agent. Open the project, go to Agents, choose Add agent and follow the pair code or URL-and-key steps. With the bundled Compose file the URL is http://agent:7001.
See Agents for both methods.
Before production
Section titled “Before production”The defaults are for evaluation. Change these before others use the server:
- Encryption key. Generate one with
java -jar reflex.jar --generateand setENCRYPTION_KEY. If you lose it, stored secrets cannot be read. - Admin password. Set
DEFAULT_PASSWORDbefore the first start, or change it in your profile. - Public URL. Set
AUTH_URLto the HTTPS address users open. - Agent key. Replace the default
devinAGENT_KEY. - Database. Use PostgreSQL for more than one user. SQLite is the default.
- Sign-in. Connect OpenID Connect or Microsoft Entra ID for single sign-on.
- Backups. Back up the database, the projects folder and the encryption key.
Put a reverse proxy with HTTPS in front of the server. All settings are in Configuration.
- Quick start: write and run your first script.
- Troubleshooting: agent shows offline, sign-in problems.