Code Monkey home page Code Monkey logo

docker's Introduction

OpenTHC Greenhouse

OpenTHC is an environment of web-baed applications focused on helping Cannabis/Hemp and Organic Horticulture industry participants meet their regulatory requirements. This repository contains the tools to start the suite of services from docker images.


These images are available from our Docker Hub Profile

Docker Pulls openthc/app Docker Pulls openthc/cre Docker Pulls openthc/lab Docker Pulls openthc/pos Docker Pulls openthc/sql

Quick Start

This docker-compose will create the OpenTHC Suite which is all the services needed to operate a farm or retail operation. Out of the box it's configured to create a local-subnet for the containers.

git clone https://github.com/openthc/docker.git /opt/openthc/docker
cd /opt/openthc/docker
docker compose up -d

Then visit http://sso.openthc.me/ and sign in with [email protected] and passweed

See INSTALL.md for more information and configuration options.

Services

These are the services run by the OpenTHC Docker suite.

  • SQL: PostgreSQL Database
  • RAM: Redis
  • SSO: Single Sign On / oAuth / Account services
  • CRE: Compliance Reporting Engine
  • App
    • Track and Trace (T&T/TnT)
    • Enterprise resource planning (ERP)
    • Regulatory compliance features for your region
  • Lab Portal
    • Regulatory compliance reporting
    • Laboratory Information Management Systems (LIMS)
  • Point of Sale
    • Front end for Retail staff
    • Business-to-Consumer regulatory compliance reporting

Contributing

  • Report Bugs
  • Suggest Enhancements / Feature Requests
  • Code Contributions

Getting Support

docker's People

Contributors

djbusby avatar mashiox avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

Forkers

mhfma

docker's Issues

Unable to login after docker install

Hi,

I am running docker on an Azure VM
Ubuntu 22.04.06 LTS
Docker version 24.0.2, build cb74dfc
docker-compose version 1.29.2, build 5becea4c

After install using docker compose, all containers are running:

CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
3006ec11977f openthc/cre:latest "/openthc-cre" 41 minutes ago Up 5 seconds 0.0.0.0:4205->80/tcp cre
1c9c41cacae1 openthc/pos:latest "/openthc-pos" 41 minutes ago Up 4 seconds 0.0.0.0:4204->80/tcp pos
43d1ca631acf openthc/app:latest "/openthc-app" 41 minutes ago Up 4 seconds 0.0.0.0:4202->80/tcp app
465d616e4c3e openthc/lab:latest "/openthc-lab" 41 minutes ago Up 3 seconds 0.0.0.0:4203->80/tcp lab
2d5166020cf4 openthc/sql:latest "docker-entrypoint.sā€¦" 41 minutes ago Up 3 seconds 127.0.0.1:42095->5432/tcp sql0
d856924c0941 redis "docker-entrypoint.sā€¦" 41 minutes ago Up 2 seconds 6379/tcp redis

This VM on Azure has a Public IP, so i am trying to login using http://public_ip:4202

The command was executed with success:
root@vm-poc-openthc:/opt/openthc/docker# docker-compose exec app php ./sbin/first-time.php
string(26) "XXXXXXXXXXXXXXXXXXX"

I can access the login page:

Screen Shot 2023-06-15 at 00 09 00

But using the default user [email protected] with password password, i cannot able to login. The same screen loads again without message error about wrong user or password.

When i try to create a new account, the page redirects to localhost on port 4201, but no docker container running on 4201.

Screen Shot 2023-06-15 at 00 13 05

Regards.
Leonardo.

Docker-compose ports don't match install.md or config-*.php

I am working on setting up a test docker, working through the docker compose all the ports referenced follow the format of 4200 whereas the install.md and config.php documents reference format of 420 also app is one 42030 in docker compose but in the documents and config file it is on 4202.

App container fails to start

Hello,

The default install instructions might be missing some important info. I'm trying to launch a Docker instance of OpenTHC with the default docker-compose and the app container exits silently with an exit code of 1.

I overrode the entrypoint from /openthc-app to tail -f /dev/null to get the container to start. Then I reviewed the contents of /openthc-app and found this:

if [ -z "$OPENTHC_MAGIC_KEY" ]
then
        echo "Shit the Bed" 1>2
        exit 1
fi

So it looks like the startup script is looking for an environment variable OPENTHC_MAGIC_KEY, but that's not mentioned in the documentation anywhere. If I add that then I can get the app container to start, but I'm not sure what this is supposed to be or what it's used for.

Now that I've got it running I'm supposed to create a section before doing anything else, and I immediately get this:

Free Plan does not allow data updates

Update Readme Badge Title, Links

They each refer to a different docker image.
They should link to that docker hub page.
They should be labeld for which image they are.
Perhaps this document should have a brief on what each image is for, and place the badge there?

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.