Giter Site home page Giter Site logo

openhie-stack's Introduction

OpenHIE-Stack

Setup Docker (Ubuntu)

Install Docker

sudo apt update

sudo apt install apt-transport-https ca-certificates curl software-properties-common

curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -

sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu focal stable"

sudo apt install docker-ce

sudo systemctl status docker

Activate Docker Swarm

sudo docker swarm init or sudo docker swarm init --advertise-addr <<fill-in-address-here>>

Install Instant v2

curl -L https://github.com/openhie/instant-v2/releases/latest/download/instant-linux -o instant

chmod +x ./instant

sudo mv instant /usr/bin/instant

sudo chown root:root /usr/bin/instant

Download project

git clone https://github.com/CalebSLane/OpenHIE-Stack.git

cd OpenHIE-Stack

Run project unsecured

sudo instant project init && sudo instant project up --env-var INSECURE_PORTS=3100:3100

Run project secured with staging certs

  • Create a basic auth loki user entry

sudo htpasswd -c /loki/.htpasswd loki

  • Edit .env to have the following entries
INSECURE=false
RENEWAL_EMAIL=<email>
DOMAIN_NAME=<server-address>
SUBDOMAINS=grafana.<server-address>,loki.<server-address>
  • init project

sudo instant project init --env-file .env

Run project secured with real certs

  • Create loki user entry

sudo htpasswd -c /loki/.htpasswd loki

  • Edit .env to have the following entries
INSECURE=false
STAGING=false
RENEWAL_EMAIL=<email>
DOMAIN_NAME=<server-address>
SUBDOMAINS=grafana.<server-address>,loki.<server-address>

GF_SECURITY_ADMIN_PASSWORD=<grafana-admin-password>
MO_SECURITY_ADMIN_PASSWORD=<minio-data-store-password>
  • init project

sudo instant project init --env-file .env

Connecting Docker logging from remote machines

sudo docker plugin install grafana/loki-docker-driver:2.9.1 --alias loki --grant-all-permissions

sudo systemctl restart docker

Specifying in command line

docker run --log-driver=loki --log-opt loki-url="https://<user_id>:<password>@<central-logging-server-address>/loki/api/v1/push" <image>

Specifying in compose

  • in your docker-compose.yml
    logging:
      driver: loki
      options:
        loki-url: "https://<user_id>:<password>@<central-logging-server-address>/loki/api/v1/push"

Specifying in docker daemon

  • in your daemon.json
    {
      "debug" : true,
      "log-driver": "loki",
      "log-opts": {
          "loki-url": "https://<user_id>:<password>@<central-logging-server-address>/loki/api/v1/push",
      }
    }
    

openhie-stack's People

Contributors

calebslane avatar

Watchers

 avatar  avatar

Forkers

i-tech-uw

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.