https://github.com/codekitchen/alarmdecoder-webapp-dockerfile
docker build for alarmdecoder-webapp
https://github.com/codekitchen/alarmdecoder-webapp-dockerfile
Last synced: 7 months ago
JSON representation
docker build for alarmdecoder-webapp
- Host: GitHub
- URL: https://github.com/codekitchen/alarmdecoder-webapp-dockerfile
- Owner: codekitchen
- Created: 2016-03-30T17:43:54.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2017-11-11T04:55:07.000Z (over 8 years ago)
- Last Synced: 2025-04-11T04:04:53.330Z (about 1 year ago)
- Language: Shell
- Size: 2.93 KB
- Stars: 4
- Watchers: 2
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# AlarmDecoder Webapp Dockerfile
This is a Dockerfile for the [AlarmDecoder Webapp](https://github.com/nutechsoftware/alarmdecoder-webapp) project. It is built by following the build instructions in that project's README, with a few tweaks to adapt to the Docker environment.
## Run Container
The container is available pre-built on [Docker Hub](https://hub.docker.com/r/codekitchen/alarmdecoder-webapp/).
```bash
docker run --rm -p 5000:5000 --device= codekitchen/alarmdecoder-webapp
```
The container will need access to the AlarmDecoder hardware, replace
`` with the correct USB device, e.g. `--device=/dev/ttyUSB0`.
You can then access AlarmDecoder at `http://:5000`.
## Complete Setup
This container exposes the gunicorn workers directly, it's recommended that set
up an nginx reverse proxy in front of the app.
You'll also likely want to created a named or mounted volume to persist the
configuration and logging, which lives at `/opt/alarmdecoder-webapp/instance`.
A complete docker-compose configuration might look something like:
```yaml
proxy:
image: jwilder/nginx-proxy
ports:
- 80:80
- 443:443
volumes:
- /var/run/docker.sock:/tmp/docker.sock:ro
- my-certs:/etc/nginx/certs
alarmdecoder:
image: codekitchen/alarmdecoder-webapp
environment:
VIRTUAL_HOST: alarm.example.com
devices:
- /dev/ttyUSB0
volumes:
- alarmdecoder:/opt/alarmdecoder-webapp/instance
```