@@ -0,0 +1,17 @@
+version: '2'
+
+services:
+ web:
+ build:
+ context: ./web/
+ ports:
+ - "8000:8000"
+ nginx:
+ restart: always
+ build: ./nginx/
+ - "80:80"
+ links:
+ - web
@@ -0,0 +1,3 @@
+FROM tutum/nginx
+RUN rm /etc/nginx/sites-enabled/default
+ADD sites-enabled/ /etc/nginx/sites-enabled
@@ -0,0 +1,14 @@
+server {
+ listen 80;
+ server_name 0.0.0.0;
+ charset utf-8;
+ location / {
+ proxy_pass http://web:8000;
+ proxy_set_header Host $host;
+ proxy_set_header X-Real-IP $remote_addr;
+ proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
+ }
+}
@@ -0,0 +1,8 @@
+FROM continuumio/miniconda
+LABEL maintainer="Peng Xiao<xiaoquwl@gmail.com>"
+COPY . /
+RUN pip install -r requirements.txt && pip install gunicorn
+ENTRYPOINT ["/runserver.sh"]
+numpy==1.15.4
+Flask==1.0.2
+pandas==0.23.4
+#!/bin/bash
+gunicorn --log-level info --log-file=/gunicorn.log --workers 4 --name app -b 0.0.0.0:8000 --reload app.server:app