Adds docker-compose file and fixes upload folder for docker container
This commit is contained in:
26
docker-compose.yml
Normal file
26
docker-compose.yml
Normal 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
|
||||
@@ -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='')
|
||||
|
||||
Reference in New Issue
Block a user