Skip to content
This repository has been archived by the owner on Oct 22, 2018. It is now read-only.
/ blynk-server Public archive
forked from mpherg/blynk-server

Docker image that runs the Blynk server

License

Notifications You must be signed in to change notification settings

kumekay/blynk-server

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NOT MAINTAINED

This repo is not maintained anymore, please use https://github.com/hortio/docker-blynk

Docker image (based on openjdk:9-jre-slim) that runs the Blynk server v0.30.2

Build image

docker build -t blynk .

Run image

Create a volume with configuration:

docker volume create blynk-server-data

Check data volume actual location (by default it will be /var/lib/docker/volumes/blynk-server-data/_data): Put configuration to server.properties in this folder. Possible options are listed here: https://github.com/blynkkk/blynk-server

docker run --restart=always \
-p 7443:7443 -p 8443:8443 \
-p 8442:8442 -p 8441:8441 \
--mount source=blynk-server-data,target=/data  \
--name blynk -d pinya/blynk

SSL

You can obtain free ssl certificates using Let's Encrypt Certbot

Put your fullchain.crt and privkey.pem to blynk-data folder.

Add these lines to blynk-data/server.properties

server.ssl.cert=/data/fullchain.crt
server.ssl.key=/data/privkey_pass.pem
server.ssl.key.pass=SeCuR3_Pa$$w0rD

https.cert=/data/fullchain.crt
https.key=/data/privkey_pass.pem
https.key.pass=SeCuR3_Pa$$w0rD

Don't forget to encrypt your privkey and set password:

openssl pkcs8 -topk8 -inform PEM -outform PEM -in privkey.pem -out privkey_pass.pem

Good luck!

Original blynk-docker project: https://github.com/mpherg/blynk-server

About

Docker image that runs the Blynk server

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Dockerfile 80.4%
  • Shell 19.6%