diff options
| -rw-r--r-- | docker-compose.yml | 63 | ||||
| -rw-r--r-- | python/Dockerfile | 5 | ||||
| -rw-r--r-- | python/requirements.txt | 10 |
3 files changed, 52 insertions, 26 deletions
diff --git a/docker-compose.yml b/docker-compose.yml index 7b43f6e..57511ec 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -10,6 +10,8 @@ services: # as long as all the Vainglory repo are checked out on the same level this will work just fine # volume to map Vainsocial.com code. used by Workspace repo. - ../vainsocial.com/:/var/www/vainsocial + - ../apigrabber:/apps/api + - ../analyzer:/apps/cli ### Workspace Utilities Container ########################### @@ -76,7 +78,6 @@ services: - PHP_IDE_CONFIG=serverName=laravel ### Nginx Server Container ################################## - ### The webroot is mapped to vainsocial.dev (entry in hosts file) nginx: @@ -96,22 +97,23 @@ services: links: - php-fpm -### Apache Server Container ################################# +### Python Container + apigrabber: + container_name: vaindock_apigrabber + build: ../apigrabber + volumes_from: + - applications + ports: + - "8080:8080" + links: + - vaindock_postgres_raw + environment: + - POSTGRESQL_HOST=vaindock_postgres_raw + - POSTGRESQL_PORT=5432 + - POSTGRESQL_DB=vainsocial-raw + - POSTGRESQL_USER=vainraw + - POSTGRESQL_PASSWORD=vainraw - # apache2: - # build: - # context: ./apache2 - # args: - # - PHP_SOCKET=php-fpm:9000 - # volumes_from: - # - applications - # volumes: - # - ./logs/apache2:/var/log/apache2 - # ports: - # - "80:80" - # - "443:443" - # links: - # - php-fpm ### PostgreSQL Container - Web #################################### @@ -142,16 +144,6 @@ services: POSTGRES_USER: vainraw POSTGRES_PASSWORD: vainraw - -### Redis Container ######################################### - -# redis: -# build: ./redis -# volumes: -# - redis:/data -# ports: -# - "6379:6379" - ### pgAdmin Container ####################################### pgadmin: @@ -173,3 +165,22 @@ volumes: driver: "local" sessions: ## nothing is connected to this (- ./data/sessions:/sessions) driver: "local" + + + +### Apache Server Container ################################# + + # apache2: + # build: + # context: ./apache2 + # args: + # - PHP_SOCKET=php-fpm:9000 + # volumes_from: + # - applications + # volumes: + # - ./logs/apache2:/var/log/apache2 + # ports: + # - "80:80" + # - "443:443" + # links: + # - php-fpm diff --git a/python/Dockerfile b/python/Dockerfile new file mode 100644 index 0000000..cb78b90 --- /dev/null +++ b/python/Dockerfile @@ -0,0 +1,5 @@ +FROM python:3.5-alpine +ADD requirements.txt / +RUN apk add --no-cache ca-certificates gcc linux-headers build-base +RUN pip install -r /requirements.txt +CMD ["python3", "/apps/api/api.py"] diff --git a/python/requirements.txt b/python/requirements.txt new file mode 100644 index 0000000..7d8614e --- /dev/null +++ b/python/requirements.txt @@ -0,0 +1,10 @@ +aiohttp==1.2.0 +appdirs==1.4.0 +async-timeout==1.1.0 +asyncpg==0.8.4 +chardet==2.3.0 +multidict==2.1.4 +packaging==16.8 +pyparsing==2.1.10 +six==1.10.0 +yarl==0.9.0 |
