Este repositorio ha sido archivado en 2021-05-10. Puedes ver archivos y clonarlo, pero no puedes hacer push o abrir incidencias o pull request.
docker-tileboard-OUTDATED/README.md

71 líneas
2.3 KiB
Markdown
Original Vista normal Histórico

2019-10-19 16:56:11 +00:00
# TileBoard Docker-Container
2019-10-19 17:11:48 +00:00
2019-10-19 21:00:12 +00:00
[![Build Status](https://drone.f-brinker.de/api/badges/fbrinker/docker-tileboard/status.svg)](https://drone.f-brinker.de/fbrinker/docker-tileboard)
2019-10-21 13:14:49 +00:00
[![Docker Pulls](https://badgen.net/docker/pulls/fbrinker/tileboard?icon=docker&label=pulls)](https://hub.docker.com/r/fbrinker/tileboard)
2019-10-19 17:11:48 +00:00
This is a very basic Docker container for [TileBoard](https://github.com/resoai/TileBoard), "a simple yet highly configurable Dashboard for HomeAssistant".
It contains the sources and starts a simple Python3 webserver to serve TileBoard at port 8000.
2019-10-21 08:32:40 +00:00
### Contribute
2019-10-21 08:31:54 +00:00
You can open any new issues [here](https://git.f-brinker.de/fbrinker/docker-tileboard/issues).
**The builds are automated** on changes of the official TileBoard repository.
Have a look at the [Dockerfile](https://git.f-brinker.de/fbrinker/docker-tileboard).
2019-10-21 08:22:19 +00:00
2019-10-19 17:11:48 +00:00
## Usage
2019-10-19 17:19:28 +00:00
You have to mount your `config.js` file into the `/tileboard` directory of the Docker container. You can see an [example config.js file in the official repository](https://github.com/resoai/TileBoard/blob/master/config.example.js).
2019-10-19 17:11:48 +00:00
2021-03-20 17:51:08 +00:00
## Versions / Tags
Besides the latest version, you can listen to updates for a specific versions:
* fbrinker/tileboard *(same as :latest)*
* fbrinker/tileboard:latest
* fbrinker/tileboard:2
* fbrinker/tileboard:2.0
* fbrinker/tileboard:2.0.0
2019-10-19 17:11:48 +00:00
## Example
Here is an example, using Docker-Compose:
```yaml
version: '3'
services:
tileboard:
image: fbrinker/tileboard
volumes:
- ./config.js:/tileboard/config.js
ports:
- "8234:8000"
```
After a `docker-compose up -d`, you can reach your TileBoard instance under `http://[yourhost-or-ip]:8234`.
2021-03-20 17:47:25 +00:00
## Extended Example
I am using it in my docker-compose file like this, with my config.js, secrets and other customizations:
```yaml
2021-03-20 17:53:27 +00:00
# Home Assistant TileBoard
2021-03-20 17:47:25 +00:00
tileboard:
container_name: tileboard
image: fbrinker/tileboard
hostname: tileboard
volumes:
- ./tileboard/config/config.js:/tileboard/config.js
- ./tileboard/config/secrets.js:/tileboard/includes/config/secrets.js
- ./tileboard/config/pages:/tileboard/includes/pages
- ./tileboard/styles/background.png:/tileboard/images/background.png
- ./tileboard/styles/custom.css:/tileboard/styles/custom.css
ports:
- "8234:8000"
restart: unless-stopped
depends_on:
- homeassistant
```
2021-03-20 17:53:27 +00:00
Note: You should never expose TileBoard to the web.