This repository has been archived on 2021-05-10. You can view files and clone it, but cannot push or open issues or pull requests.
docker-tileboard-OUTDATED/README.md

76 lines
2.9 KiB
Markdown
Raw Permalink Normal View History

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
2021-03-20 18:03:35 +00:00
Besides the latest version, you can listen to updates for a specific version:
2021-03-20 17:51:08 +00:00
* fbrinker/tileboard *(same as :latest)*
* fbrinker/tileboard:latest
* fbrinker/tileboard:2
2021-03-20 18:03:35 +00:00
* fbrinker/tileboard:2.2
* fbrinker/tileboard:2.2.0
2021-03-20 17:51:08 +00:00
Additionally, there are `nightly` and `dev` builds as follows:
* `fbrinker/tileboard:nightly` contains a nightly build of TileBoard's `master` branch. Use it to have the most bleeding edge changes, which have not made it into a release yet.
* `fbrinker/tileboard:dev` bundles TileBoard's source code and runs `yarn run dev` inside the container. Use it to modify the source, check your changes into GitHub and propose a pull request to TileBoard. See the TileBoard [contribution page](https://github.com/resoai/TileBoard/blob/master/CONTRIBUTING.md) for details.
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.