21 lines
959 B
Markdown
21 lines
959 B
Markdown
# Container Dashboard
|
|
A simple dashboard for turning your docker/kubernetes services (containers/pods) on or off from a web UI
|
|
|
|
## Usage
|
|
First build the docker images under `frontend` and `backend`
|
|
|
|
`docker build -t container-dashboard-frontend ./frontend`
|
|
|
|
`docker build -t container-dashboard-backend ./backend`
|
|
|
|
### Frontend
|
|
Run the frontend with `docker run -d -p 80:80 BACKEND=\<url to backend\> container-dashboard-frontend:latest`.
|
|
|
|
`BACKEND` points towards the backend container and looks something like this: `http(s)://123.123.123:8080`
|
|
|
|
### Backend
|
|
Run the backend with `docker run -d -p 8080:8080 -e BACKEND=<docker | kubernetes> -e KUBECONFIG=<path to kube config file> -v /path/to/kube-config:/app/kube-config container-dashboard-backend:latest`
|
|
|
|
The environment variable `KUBECONFIG` and the mounted kubernetes config folder are only needed if you are using kubernetes.
|
|
|
|
Docker backend has not been implemented yet. Feel free to contribute ^w^
|