Skip to content

Commit

Permalink
major reorganization - preparing auto building
Browse files Browse the repository at this point in the history
  • Loading branch information
matheusmota committed Apr 26, 2019
1 parent fbde73c commit a4daa4d
Show file tree
Hide file tree
Showing 6 changed files with 26 additions and 83 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"]
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 a4daa4d

Please sign in to comment.