summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorschneefux <schneefux+commit@schneefux.xyz>2017-02-28 19:04:09 +0100
committerschneefux <schneefux+commit@schneefux.xyz>2017-02-28 19:04:09 +0100
commit7b8331b38c733d93652772667c7dc778c30f6e7c (patch)
tree32b12b23355ccf13ac4171cc0d64385cd0f2587e
parent81a6fcd7bda0aa4756f58151c6e37c57d940816a (diff)
downloadvaindock-7b8331b38c733d93652772667c7dc778c30f6e7c.tar.gz
vaindock-7b8331b38c733d93652772667c7dc778c30f6e7c.zip
add compiler container
-rw-r--r--docker-compose.yml22
1 files changed, 22 insertions, 0 deletions
diff --git a/docker-compose.yml b/docker-compose.yml
index 7f10d0c..a35906d 100644
--- a/docker-compose.yml
+++ b/docker-compose.yml
@@ -11,6 +11,7 @@ services:
# volume to map Vainsocial.com code. used by Workspace repo.
- ../vainsocial/:/var/www/vainsocial
- ../apigrabber:/apps/api
+ - ../statscompiler:/apps/stats
- ../analyzer:/apps/climate
### Workspace Utilities Container ###########################
@@ -141,6 +142,27 @@ services:
- POSTGRESQL_DEST_PASSWORD=vainweb
+### Python Container for compiler
+ compiler:
+ build: ./python
+ volumes:
+ - ../statscompiler:/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 ####################################
vaindock_postgres_web: