Skip to content

Commit

Permalink
Merge pull request #4 from datasci4health/development
Browse files Browse the repository at this point in the history
Development
  • Loading branch information
matheusmota authored Apr 26, 2019
2 parents e662d39 + a4daa4d commit 21b00b4
Show file tree
Hide file tree
Showing 7 changed files with 32 additions and 89 deletions.
12 changes: 12 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
FROM python:3.7-alpine

WORKDIR /app

COPY requirements.txt .

RUN pip3 install --upgrade pip
RUN pip3 install --upgrade -r requirements.txt

ADD ./src .

CMD ["python3", "server.py"]
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
[![GitHub license](https://img.shields.io/github/license/Naereen/StrapDown.js.svg)](https://github.com/datasci4health/harena-manager/blob/master/LICENSE)
[![Docker Automated](https://img.shields.io/docker/cloud/automated/datasci4health/harena-manager.svg?style=flat)](https://cloud.docker.com/u/datasci4health/repository/registry-1.docker.io/datasci4health/harena-manager)
[![Docker Build](https://img.shields.io/docker/cloud/build/datasci4health/harena-manager.svg?style=flat)](https://cloud.docker.com/u/datasci4health/repository/registry-1.docker.io/datasci4health/harena-manager)
[![Docker Pulls](https://img.shields.io/docker/pulls/datasci4health/harena-manager.svg?style=flat)](https://cloud.docker.com/u/datasci4health/repository/registry-1.docker.io/datasci4health/harena-manager)
[![Docker Stars](https://img.shields.io/docker/stars/datasci4health/harena-manager.svg?style=flat)](https://cloud.docker.com/u/datasci4health/repository/registry-1.docker.io/datasci4health/harena-manager)
[![GitHub license](https://img.shields.io/github/license/Naereen/StrapDown.js.svg)](https://github.com/datasci4health/harena-logger/blob/master/LICENSE)
[![Docker Automated](https://img.shields.io/docker/cloud/automated/datasci4health/harena-logger.svg?style=flat)](https://cloud.docker.com/u/datasci4health/repository/registry-1.docker.io/datasci4health/harena-logger)
[![Docker Build](https://img.shields.io/docker/cloud/build/datasci4health/harena-logger.svg?style=flat)](https://cloud.docker.com/u/datasci4health/repository/registry-1.docker.io/datasci4health/harena-logger)
[![Docker Pulls](https://img.shields.io/docker/pulls/datasci4health/harena-logger.svg?style=flat)](https://cloud.docker.com/u/datasci4health/repository/registry-1.docker.io/datasci4health/harena-logger)
[![Docker Stars](https://img.shields.io/docker/stars/datasci4health/harena-logger.svg?style=flat)](https://cloud.docker.com/u/datasci4health/repository/registry-1.docker.io/datasci4health/harena-logger)

# herena-logger

[Harena](https://github.com/datasci4health/harena)'s API for managing users and clinical cases.

## Table of Contents

* [herena-manager](#herena-manager)
* [herena-logger](#herena-logger)
* [Table of Contents](#table-of-contents)
* [Getting Started](#getting-started)
* [Running as Docker containers - Linux](#running-as-docker-containers---linux)
Expand Down
86 changes: 14 additions & 72 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,51 +2,35 @@ version: '3'

services:





broker:
image: eclipse-mosquitto
container_name: "broker"
ports:
- 1883:1883
# - 9001:9001
# volumes:
# - broker_config:/mosquitto/config/
restart: always





relayer:
build: ./modules/relayer
container_name: "relayer"
harena-logger:
image: test
environment:
- HARENA_LOGGER_BROKER_HOST=broker
- HARENA_LOGGER_BROKER_HOST=harena-logger-broker
- HARENA_LOGGER_BROKER_PORT=1883
- HARENA_LOGGER_FLASK_HOST=0.0.0.0
- HARENA_LOGGER_FLASK_PORT=5000
- HARENA_LOGGER_FLASK_DEBUG=False
- HARENA_LOGGER_MONGODB_HOST=mongodb
- HARENA_LOGGER_MONGODB_HOST=harena-logger-mongodb
- HARENA_LOGGER_MONGODB_PORT=27017
- HARENA_LOGGER_MONGODB_DB=harena_logger
- HARENA_LOGGER_MONGODB_COLLECTION=executions
ports:
- 5000:5000
depends_on:
- broker
- mongodb
- harena-logger-broker
- harena-logger-mongodb
restart: always


harena-logger-broker:
image: eclipse-mosquitto
ports:
- 1883:1883
restart: always




mongodb:
harena-logger-mongodb:
image: mongo:latest
container_name: "mongodb"
environment:
- MONGO_DATA_DIR=/data/db
- MONGO_LOG_DIR=/dev/null
Expand All @@ -58,47 +42,5 @@ services:




swagger:
image: swaggerapi/swagger-ui
container_name: "swagger"
environment:
- SWAGGER_JSON=/openapi.yaml
volumes:
- ./docs/openapi.yaml:/openapi.yaml
ports:
- 4000:8080
restart: always


volumes:
harena_logger_mongodb:


# database:
# image: mysql:5.7
# ports:
# - "3306:3306"
# volumes:
# - database:/var/lib/mysql
# environment: # will be replaced to .env vars, as in ${DB_PASSWORD}
# - MYSQL_DATABASE=jacinto-casemanager
# - MYSQL_USER=jacinto-casemanager
# - MYSQL_ALLOW_EMPTY_PASSWORD=yes
# - MYSQL_PASSWORD=jacinto
# - MYSQL_ROOT_PASSWORD=root
# restart: always


# database-ui:
# image: phpmyadmin/phpmyadmin:latest
# links:
# - database
# ports:
# - 80:80
# environment:
# - PMA_ARBITRARY=0 # connection to any server
# - PMA_HOST=database
# - PMA_PORT=3306
# depends_on:
# - database
harena_logger_mongodb:
11 changes: 0 additions & 11 deletions modules/relayer/Dockerfile

This file was deleted.

File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 21b00b4

Please sign in to comment.