Skip to content

Commit

Permalink
update discovery app
Browse files Browse the repository at this point in the history
  • Loading branch information
fsignorini committed May 3, 2018
1 parent bd67537 commit f677e20
Showing 1 changed file with 24 additions and 15 deletions.
39 changes: 24 additions & 15 deletions docs/installing/discovery_app.rst
Original file line number Diff line number Diff line change
Expand Up @@ -23,24 +23,34 @@ Discovery App service to connect and crawler provider
- "5000:5000"
environment:
- "CELERY_BROKER_URL=amqp://rabbitmq:5672"
- "MAESTRO_PORT=5000"
- "MAESTRO_MONGO_URI=mongodb"
- "MAESTRO_MONGO_DATABASE=maestro-client"
- "MAESTRO_DATA_URI=http://data:5000"
celery:
discovery-celery:
image: maestroserver/discovery-maestro-celery
environment:
- "MAESTRO_DISCOVERY_URL=http://discovery"
- "CELERY_BROKER_URL=amqp://rabbitmq:5672"
- "MAESTRO_PORT=5000"
- "MAESTRO_DATA_URI=http://data:5000"
Run docker compose

.. code-block:: bash
docker-compose up -d
Or docker run

.. code-block:: bash
docker run -p 5000:5000 -e "MAESTRO_DATA_URI=http://data:5000" -e "CELERY_BROKER_URL=amqp://rabbitmq:5672" maestroserver/discovery-maestro
docker run -e "MAESTRO_DATA_URI=http://data:5000" -e "CELERY_BROKER_URL=amqp://rabbitmq:5672" maestroserver/discovery-maestro-celery
----------

**Installation with python 3**

- Python >3.4
- RabbitMQ
- MongoDB

Download de repository

Expand Down Expand Up @@ -103,14 +113,13 @@ Download de repository

**Env variables**

======================= ============================ ===========================
======================= ============================ ============================
Env Variables Example Description
======================= ============================ ===========================
MAESTRO_MONGO_URI localhost Mongo Url conn
MAESTRO_MONGO_DATABASE maestro-client
MAESTRO_DISCOVERY_URL http://localhost Discovery API URL
MAESTRO_DISCOVERY_PORT 5000 Discovery API Port
======================= ============================ ============================
MAESTRO_DATA_URI http://localhost:5010 Discovery API URL
MAESTRO_SECRETJWT xxxx Same that Server App
MAESTRO_SCAN_QTD 200
MAESTRO_TRANSLATE_QTD 200 Prefetch translation process
MAESTRO_GWORKERS 2 Gunicorn multi process
CELERY_BROKER_URL amqp://rabbitmq:5672 RabbitMQ connection
======================= ============================ ===========================
CELERYD_TASK_TIME_LIMIT 10 Timeout workers
======================= ============================ ============================

0 comments on commit f677e20

Please sign in to comment.