Skip to content

Commit

Permalink
Merge pull request #84 from BBVA/fix/integration/patton
Browse files Browse the repository at this point in the history
change docs
  • Loading branch information
Sergiodfdez committed Feb 8, 2018
2 parents 165f2d1 + d92ec84 commit 810ad13
Showing 1 changed file with 53 additions and 50 deletions.
103 changes: 53 additions & 50 deletions docs/quickstart.rst
Original file line number Diff line number Diff line change
Expand Up @@ -13,58 +13,61 @@ First of run Patton Server

2 - Create a docker-compose.yml file
-----------------------
Download Docker Compose file from `this link <https://github.com/BBVA/deeptracy/blob/master/docker-compose.yml>`_ or copy this code


.. code-block:: file
version: '3'

services:

postgres:
image: postgres:9.6-alpine
environment:
- POSTGRES_PASSWORD=postgres
ports:
- 5433:5433
command: -p 5433

redis:
image: redis:3-alpine
ports:
- 6379:6379

deeptracy:
image: bbvalabs/deeptracy:latest
depends_on:
- redis
- postgres
environment:
- BROKER_URI=redis://redis:6379
- DATABASE_URI=postgresql://postgres:postgres@postgres:5433/deeptracy
- POSTGRES_URI=postgresql://postgres:postgres@postgres:5433
- SHARED_VOLUME_PATH=/tmp/deeptracy
- LOCAL_PRIVATE_KEY_FILE=/root/.ssh/id_rsa
- PATTON_URI=http://localhost:8000
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- /tmp:/tmp
- ./private_key:/root/.ssh/
privileged: true
command: ["./init_patton_db.sh"]

deeptracy-api:
image: bbvalabs/deeptracy-api
depends_on:
- redis
- postgres
ports:
- 8080:8080
environment:
- BROKER_URI=redis://redis:6379
- DATABASE_URI=postgresql://postgres:postgres@postgres:5433/deeptracy
- SERVER_ADDRESS=0.0.0.0:8080
- GUNICORN_WORKERS=1
- LOG_LEVEL=INFO
command: ["./wait-for-it.sh", "postgres:5433", "--", "/opt/deeptracy/run.sh"]
version: '3'
services:
postgres:
image: postgres:9.6-alpine
environment:
- POSTGRES_PASSWORD=postgres
ports:
- 5433:5433
command: -p 5433
redis:
image: redis:3-alpine
ports:
- 6379:6379
deeptracy:
image: bbvalabs/deeptracy:latest
depends_on:
- redis
- postgres
environment:
- BROKER_URI=redis://redis:6379
- DATABASE_URI=postgresql://postgres:postgres@postgres:5433/deeptracy
- POSTGRES_URI=postgresql://postgres:postgres@postgres:5433
- SHARED_VOLUME_PATH=/tmp/deeptracy
- LOCAL_PRIVATE_KEY_FILE=/root/.ssh/id_rsa
- PATTON_URI=http://localhost:8000
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- /tmp:/tmp
- ./private_key:/root/.ssh/
privileged: true
command: ["./init_patton_db.sh"]
deeptracy-api:
image: bbvalabs/deeptracy-api
depends_on:
- redis
- postgres
ports:
- 8080:8080
environment:
- BROKER_URI=redis://redis:6379
- DATABASE_URI=postgresql://postgres:postgres@postgres:5433/deeptracy
- SERVER_ADDRESS=0.0.0.0:8080
- GUNICORN_WORKERS=1
- LOG_LEVEL=INFO
command: ["./wait-for-it.sh", "postgres:5433", "--", "/opt/deeptracy/run.sh"]
3 - Execute the docker-compose file
Expand Down

0 comments on commit 810ad13

Please sign in to comment.