Ui for Docker monitoring Monitor your containers, images, system resources, and alerts
325
Lightweight Docker Container & Image Monitor
A modern web-based Docker monitoring tool built with Python Flask. Monitor your containers, images, system resources, and set up intelligent alerts.
Clone the repository:
git clone <repository-url>
cd dockwatch
Configure environment variables:
cp .env.example .env
Edit .env and set your preferences:
FLASK_SECRET_KEY=your-secret-key-here
ADMIN_USERNAME=admin
ADMIN_PASSWORD=your-secure-password
FLASK_PORT=5000
Build and run:
docker compose up --build
Access the application:
Open your browser and navigate to http://localhost:5000
Login:
Use the credentials you set in the .env file
Run DockWatch directly from Docker Hub without cloning the repository:
docker run -d \
--name dockwatch \
-p 8080:8080 \
-v /var/run/docker.sock:/var/run/docker.sock \
yourusername/dockwatch:latest
docker run -d \
--name dockwatch \
-p 8080:8080 \
-v /var/run/docker.sock:/var/run/docker.sock \
-e ADMIN_USERNAME=admin \
-e ADMIN_PASSWORD=YourSecurePassword12345678901234 \
-e PORT=8080 \
-e DISCORD_WEBHOOK_URL=https://discord.com/api/webhooks/your-webhook-url \
-e SLACK_WEBHOOK_URL=https://hooks.slack.com/services/your-webhook \
-e TELEGRAM_BOT_TOKEN=your-bot-token \
-e TELEGRAM_CHAT_ID=your-chat-id \
yourusername/dockwatch:latest
# Create a .env file with your settings
docker run -d \
--name dockwatch \
-p 8080:8080 \
-v /var/run/docker.sock:/var/run/docker.sock \
--env-file .env \
yourusername/dockwatch:latest
| Variable | Required | Default | Description |
|---|---|---|---|
ADMIN_USERNAME | No | admin | Admin login username |
ADMIN_PASSWORD | Yes | - | Admin password (must be exactly 32 characters) |
PORT | No | 8080 | Application port |
DISCORD_WEBHOOK_URL | No | - | Discord webhook for notifications |
SLACK_WEBHOOK_URL | No | - | Slack webhook for notifications |
TELEGRAM_BOT_TOKEN | No | - | Telegram bot token |
TELEGRAM_CHAT_ID | No | - | Telegram chat ID |
GENERIC_WEBHOOK_URL | No | - | Generic webhook URL |
Important Notes:
ADMIN_PASSWORD must be exactly 32 characters long-v /var/run/docker.sock:/var/run/docker.sock) is required for monitoring//var/run/docker.sock:/var/run/docker.sock for the socket path.env will be loaded automatically on first runhttp://localhost:8080Clone the repository:
git clone <repository-url>
cd dockwatch
Create a virtual environment:
python -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate
Install dependencies:
pip install -r requirements.txt
Configure environment variables:
cp .env.example .env
Edit .env with your settings (see Option 1 step 2)
Run the application:
python app.py
Access the application:
Open your browser and navigate to http://localhost:5000
The application uses environment variables for configuration. Key settings include:
FLASK_SECRET_KEY: Secret key for session management (change this!)ADMIN_USERNAME: Admin login usernameADMIN_PASSWORD: Admin login passwordFLASK_PORT: Port the application runs on (default: 5000)See LICENSE.md for details.
Ruturaj Sharbidre
Note: Make sure Docker is running before starting the application. The app requires access to the Docker socket to monitor containers and images.
Content type
Image
Digest
sha256:135fd1a76…
Size
76.5 MB
Last updated
8 months ago
docker pull ruturajs/dockwatch