GitHub - salihciftci/liman: Basic docker monitoring web application
source link: https://github.com/salihciftci/liman
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
README.md
Liman
Basic docker monitoring web application. Written with Go.
Features
- Containers
- Stats
- Logs
- Images
- Networks
- Volumes
- API
Prerequisites
To keep our data safe Liman has login page. We need to export environment variable to set login password.
#In Docker use -e option
-e pass=MYLOGINPASS
#In host you need to export pass variable
$ export pass=MYLOGINPASS
Installation
Liman works with host and docker container.
Docker
docker run -dit --name liman -e pass=PASS -v /var/run/docker.sock:/var/run/docker.sock salihciftci/liman
Note: the -v /var/run/docker.sock:/var/run/docker.sock
option can be used in Linux environments only.
Host
You can download the lastest version of liman from releases or you can build with Go.
go get github.com/salihciftci/liman
make build
Note: Master branch may not stable!
API Usage
API only allow GET requests, other requests will rejected.
We need a key to use Liman API. We can have that from settings in home page.
Basic usage:
curl -i http://localhost:8080/api/status?key=xxx
More examples and all end points can be found in wiki.
Screenshots
License
MIT
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK