docker logs and docker inspect in an easy to use GUI
- SSH-less Container Monitoring: You can add as many components of your infrastructure as you like, and check up on the services running in one place without SSH access.
- Centralized View for Container Management: One user-friendly interface to analyze logs and container configs.
- Goodbye JSON (Hello UI): Quickly interpretable UI to spare you from untangling data in JSON about your containers.
- Enter
docker run -p 8000:8000 -p 5000:5000 --name darklens -d ghcr.io/dyrector-io/darklens:latest
in terminal - Open
localhost:8000
in browser - Enjoy!
Settings provides various configuration options for running darklens, tailor your darklens deployment to your needs with these settings.
Launch Darklens without any authentication or authorization checks. Ideal for quick testing and development.
docker run -p 8000:8000 -p 5000:5000 -e DISABLE_AUTH=true --name darklens -d ghcr.io/dyrector-io/darklens:latest
Enhance security by specifying a custom JWT secret for authentication.
docker run -p 8000:8000 -p 5000:5000 -e JWT_SECRET=supersecret --name darklens -d ghcr.io/dyrector-io/darklens:latest
Configure darklens to run on a public domain with options for specifying a public URL and agent address.
docker run -p 8000:8000 -p 5000:5000 -e PUBLIC_URL=example.com AGENT_ADDRESS=example.com:5000 --name darklens -d ghcr.io/dyrector-io/darklens:latest
Note: Agents require gRPC port 5000 to connect to the service
Ensure data persistence by using Docker volumes to store Darklens data.
docker run -p 8000:8000 -p 5000:5000 -v darklens-data:/var/lib/darklens --name darklens -d ghcr.io/dyrector-io/darklens:latest
- Click on the empty card with a plus icon to add a new node
- Enter a name for your node and click Save
- This'll be the name of the agent running as a container on your node
- On the right side of the screen, select whether you'd like to install the agent with a Shell (UNIX) or a PowerShell (Windows) script
Note: Shell scripts might not work on Windows using Git Bash.
- Generate the script and copy & paste it into Shell or PowerShell. Press enter to install the agent
- When node status turns green, you're ready to use darklens
Note: Agents connect to the host defined in their JWT token (
GRPC_TOKEN
environment), by default theAGENT_ADDRESS
backend environment variable is used, but users can override this value on the UI.
-
Setup backend
- Go to
web/backend
- Run
npm i
- Copy
.env.example
to.env
- Go to
-
Setup frontend
- Go to
web/frontend
- Run
npm i
- Copy
.env.example
to.env
- Go to
-
Setup development Traefik
- Go to
web
- Run
docker compose -f docker-compose.dev.yaml up
- Go to
-
Develop
- Go to
web/backend
and runnpx prisma migrate dev
to apply migrations then start usingnpm start
- Go to
web/frontend
and runnpm start
- The app will be available on
localhost:8000
- Go to
Make sure the
dev-traefik
container is running as it routes the traffic between the frontend and the backend
If you experience any issues, feel free to reach out to us on Discord.