Adds docker-compose file and fixes upload folder for docker container

This commit is contained in:
Patrick McDonagh
2016-11-01 20:23:42 -05:00
parent 849b4e5d82
commit 7082fd0fd2
2 changed files with 27 additions and 1 deletions

26
docker-compose.yml Normal file
View File

@@ -0,0 +1,26 @@
version : '2'
services:
web_db:
image: henrypump/logger/web_db
ports:
- "443:5000"
networks:
poconsole:
ipv4_address: 10.10.10.10
daq_sample:
image: henrypump/logger/daq_sample
networks:
- poconsole
depends_on:
- web_db
networks:
poconsole:
driver: bridge
driver_opts:
com.docker.network.enable_ipv4: "true"
ipam:
driver: default
config:
- subnet: 10.10.10.0/24

View File

@@ -7,7 +7,7 @@ from werkzeug.utils import secure_filename
from sqlalchemy import and_
import mysql.connector
UPLOAD_FOLDER = '/Users/patrickjmcd/Henry_Pump/tagserver/web_db/flask/app/docs'
UPLOAD_FOLDER = '/root/tag-server/flask/app/docs'
ALLOWED_EXTENSIONS = set(['txt', 'pdf', 'png', 'jpg', 'jpeg', 'gif'])
app = Flask('app', static_url_path='')