Comments (1)
I don't use Docker, but you can up any web server image and host it. I tried Nginx here, follow the steps:
- Download the repository and move the folder
/build
to where you want to save the app, rename it if you want. - In this folder create a file
docker-compose.yml
and write on it:
version: "3.9"
name: vnstat_dashboard
services:
web:
image: nginx
restart: unless-stopped
ports:
- 8000:80
volumes:
- ./:/usr/share/nginx/html
- Open the Terminal and on this folder type
docker-compose up -d
- Follow the steps to make the Crontab send the reports to
/location/to/build/api
every 5 minutes. - Open
http://localhost:8000
. Make sure the report file are available on the api folder.
Tell me if this works, maybe a I can put this option available.
I wanted to use a custom domain like "vnstat.local" but I couldn't find an easy step to setup this on Docker.
from vnstat-dashboard.
Related Issues (4)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vnstat-dashboard.