Skip to content

Commit

Permalink
Merge branch 'master' into min5
Browse files Browse the repository at this point in the history
  • Loading branch information
tomangert authored Aug 9, 2019
2 parents 7c11372 + a42e18c commit cffcf57
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 24 deletions.
8 changes: 5 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
FROM php:7.0-apache

RUN mkdir -p /var/www/html/vnstat/
ADD . /var/www/html/vnstat/
RUN mkdir -p /var/lib/vnstat
MAINTAINER Alex Marston <alexander.marston@gmail.com>

COPY ./app/ /var/www/html/

RUN mkdir -p /var/lib/vnstat
37 changes: 16 additions & 21 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,35 +1,32 @@
# vnstat-dashboard
[![FOSSA Status](https://app.fossa.io/api/projects/git%2Bgithub.heygears.com%2Falexandermarston%2Fvnstat-dashboard.svg?type=shield)](https://app.fossa.io/projects/git%2Bgithub.heygears.com%2Falexandermarston%2Fvnstat-dashboard?ref=badge_shield)
# What is vnstat-dashboard?
This dashboard is an adaptation of vnstat-php-frontend by bjd using Bootstrap written in PHP. It provides the following:


An adaptation of vnstat-php-frontend by bjd using Bootstrap written in PHP.

## Features
* Hourly Statistics Chart (using Google Charts)
* Daily & Monthly Statistics Overview
* Top 10 Day Statistics
* Automatically populated interface selection

## System Requirements
* PHP Version 5.4
## Run it with Docker

### How to build it
``$ docker build . -t amarston/vnstat-dashboard:latest``

## How to run it with Docker
### Prerequisites
* Docker should be installed:
* https://docs.docker.com/install/
* `vnstat` should be installed:
* https://www.linuxbabe.com/monitoring/install-vnstat-debian-8ubuntu-16-04-server-monitor-network-traffic
* https://github.com/vergoh/vnstat
### How to publish it
``$ docker push amarston/vnstat-dashboard:latest``

### How to start it
1. `docker-compose up -d`
2. Open http://localhost/vnstat
``$ docker run --name vnstat-dashboard -p 80:80 -d amarston/vnstat-dashboard:latest``

### How to stop it
`docker-compose down`
``$ docker stop vnstat-dashboard``

## Run it with Locally

### How to run it
``$ cp -rp app/ /var/www/html/vnstat/``

## Licensing
Copyright (C) 2016 Alexander Marston (alexander.marston@gmail.com)
Copyright (C) 2019 Alexander Marston (alexander.marston@gmail.com)

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
Expand All @@ -43,5 +40,3 @@ GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.

[![FOSSA Status](https://app.fossa.io/api/projects/git%2Bgithub.heygears.com%2Falexandermarston%2Fvnstat-dashboard.svg?type=large)](https://app.fossa.io/projects/git%2Bgithub.heygears.com%2Falexandermarston%2Fvnstat-dashboard?ref=badge_large)

0 comments on commit cffcf57

Please # to comment.