forked from SensorsIot/IOTstack
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ADDED Mariadb, MotionEye, NextCloud, webthings_gateway, blynk_server
- Loading branch information
Showing
10 changed files
with
136 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
FROM adoptopenjdk/openjdk11 | ||
MAINTAINER Graham Garner <[email protected]> | ||
|
||
#RUN apt-get update | ||
#RUN apt-get install -y apt-utils | ||
#RUN apt-get install -y default-jdk curl | ||
|
||
ENV BLYNK_SERVER_VERSION 0.41.10 | ||
RUN mkdir /blynk | ||
RUN curl -L https://github.com/blynkkk/blynk-server/releases/download/v${BLYNK_SERVER_VERSION}/server-${BLYNK_SERVER_VERSION}.jar > /blynk/server.jar | ||
|
||
# Create data folder. To persist data, map a volume to /data | ||
RUN mkdir /data | ||
|
||
# Create configuration folder. To persist data, map a file to /config/server.properties | ||
RUN mkdir /config && touch /config/server.properties | ||
VOLUME ["/config", "/data/backup"] | ||
|
||
# IP port listing: | ||
# 8080: Hardware without ssl/tls support | ||
# 9443: Blynk app, https, web sockets, admin port | ||
EXPOSE 8080 9443 | ||
|
||
WORKDIR /data | ||
ENTRYPOINT ["java", "-jar", "/blynk/server.jar", "-dataFolder", "/data", "-serverConfig", "/config/server.properties"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
blynk_server: | ||
build: ./services/blynk_server/. | ||
container_name: blynk_server | ||
restart: unless-stopped | ||
ports: | ||
- 8180:8080 | ||
- 8441:8441 | ||
- 9443:9443 | ||
volumes: | ||
- ./volumes/blynk_server/data:/data | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
TZ=Europe/London | ||
PUID=1000 | ||
PGID=1000 | ||
MYSQL_ROOT_PASSWORD=ROOT_ACCESS_PASSWORD | ||
#MYSQL_DATABASE=USER_DB_NAME | ||
#MYSQL_USER=MYSQL_USER | ||
#MYSQL_PASSWORD=DATABASE_PASSWORD |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
mariadb: | ||
image: linuxserver/mariadb | ||
container_name: mariadb | ||
env_file: | ||
- ./services/mariadb/mariadb.env | ||
volumes: | ||
- ./volumes/mariadb/config:/config | ||
ports: | ||
- 3306:3306 | ||
restart: unless-stopped | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#! bin/bash | ||
|
||
echo "run 'mysql -uroot -p' for terminal access" | ||
docker exec -it mariadb bash |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
motioneye: | ||
image: "ccrisan/motioneye:master-armhf" | ||
container_name: "motioneye" | ||
restart: unless-stopped | ||
ports: | ||
- 8765:8765 | ||
- 8081:8081 | ||
volumes: | ||
- /etc/localtime:/etc/localtime:ro | ||
- ./volumes/motioneye/etc_motioneye:/etc/motioneye | ||
- ./volumes/motioneye/var_lib_motioneye:/var/lib/motioneye | ||
#devices: | ||
# - "/dev/video0:/dev/video0" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
nextcloud: | ||
image: nextcloud | ||
container_name: nextcloud | ||
ports: | ||
- 9321:80 | ||
volumes: | ||
- ./volumes/nextcloud/html:/var/www/html | ||
restart: unless-stopped | ||
depends_on: | ||
- nextcloud_db | ||
links: | ||
- nextcloud_db | ||
|
||
nextcloud_db: | ||
image: linuxserver/mariadb | ||
container_name: nextcloud_db | ||
volumes: | ||
- ./volumes/nextcloud/db:/config | ||
environment: | ||
- MYSQL_ROOT_PASSWORD=password | ||
- MYSQL_PASSWORD=password | ||
- MYSQL_DATABASE=nextcloud | ||
- MYSQL_USER=nextcloud | ||
restart: unless-stopped | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
webthings_gateway: | ||
image: mozillaiot/gateway:arm | ||
container_name: webthings_gateway | ||
network_mode: host | ||
#ports: | ||
# - 8080:8080 | ||
# - 4443:4443 | ||
#devices: | ||
# - /dev/ttyACM0:/dev/ttyACM0 | ||
volumes: | ||
- ./volumes/webthings_gateway/share:/home/node/.mozilla-iot | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters