Skip to content

gin: Adding application #19

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
36 changes: 36 additions & 0 deletions gin/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# /gin/docker-compose.yml
version: "3"
services:
influxdb:
image: influxdb:1.8
volumes:
- /var/lib/influxdb:/var/lib/influxdb
environment:
INFLUXDB_DB: mydb
restart: always
ports:
- "8086:8086"
privileged: true
nodered:
image: hub.foundries.io/lmp/nodered_app:latest
volumes:
- /dev/ttyUSB0:/dev/ttyUSB0
depends_on:
- influxdb
ports:
- "1880:1880"
restart: always
privileged: true
user: root:root
grafana:
image: hub.foundries.io/lmp/grafana:latest
depends_on:
- influxdb
ports:
- "3000:3000"
restart: always
depends_on:
- influxdb
restart: always
privileged: true
user: root:root
33 changes: 33 additions & 0 deletions grafana/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# Final stage
# Copyright (c) 2021 Foundries.io
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
FROM grafana/grafana:8.5.3

LABEL maintainer="Raul Munoz <raul@foundries.io>"

USER grafana
ENTRYPOINT [ "/run.sh" ]
USER root
RUN apk add --no-cache vim git
USER 1000

COPY public /usr/share/grafana/public
COPY grafana.db /var/lib/grafana/grafana.db
COPY grafana.ini /etc/grafana/grafana.ini
COPY foundries.png /usr/share/grafana/public/img/
COPY grafana.png /usr/share/grafana/public/img/
COPY nodered.png /usr/share/grafana/public/img/
COPY influxdb.png /usr/share/grafana/public/img/

Binary file added grafana/foundries.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added grafana/grafana.db
Binary file not shown.
Loading