summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKapil Viren Ahuja <k.v.ahuja@gmail.com>2017-03-18 23:38:52 +0530
committerKapil Viren Ahuja <k.v.ahuja@gmail.com>2017-03-18 23:38:52 +0530
commit7257eb10f10b9d7ae1d2e326e2401216b645bd6a (patch)
tree6f384839df0a1e2c694f49ad6207ccc5569b724c
parentcdc8be655f5fabe0bfe257956bfd33cac3e352de (diff)
downloadvaindock-7257eb10f10b9d7ae1d2e326e2401216b645bd6a.tar.gz
vaindock-7257eb10f10b9d7ae1d2e326e2401216b645bd6a.zip
adding cruncher
-rw-r--r--docker-compose.yml21
1 files changed, 21 insertions, 0 deletions
diff --git a/docker-compose.yml b/docker-compose.yml
index 18d67ec..db62a0e 100644
--- a/docker-compose.yml
+++ b/docker-compose.yml
@@ -14,6 +14,7 @@ services:
- ../preloader:/apps/preloader
- ../compiler:/apps/stats
- ../analyzer:/apps/climate
+ - ../cruncher:/apps/cruncher
### Workspace Utilities Container ###########################
@@ -202,6 +203,26 @@ services:
- POSTGRESQL_DEST_USER=vainweb
- POSTGRESQL_DEST_PASSWORD=vainweb
+### Python Container for cruncher
+ cruncher:
+ build: ./python
+ volumes:
+ - ../cruncher:/apps/api
+ links:
+ - vaindock_postgres_raw
+ - vaindock_postgres_web
+ environment:
+ - POSTGRESQL_SOURCE_HOST=vaindock_postgres_raw
+ - POSTGRESQL_SOURCE_PORT=5432
+ - POSTGRESQL_SOURCE_DB=vainsocial-raw
+ - POSTGRESQL_SOURCE_USER=vainraw
+ - POSTGRESQL_SOURCE_PASSWORD=vainraw
+ - POSTGRESQL_DEST_HOST=vaindock_postgres_web
+ - POSTGRESQL_DEST_PORT=5432
+ - POSTGRESQL_DEST_DB=vainsocial-web
+ - POSTGRESQL_DEST_USER=vainweb
+ - POSTGRESQL_DEST_PASSWORD=vainweb
+
### PostgreSQL Container - Web ####################################