Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ services:
networks:
- internal
volumes:
- ${TRAFFIC_DIR_HOST}:${TRAFFIC_DIR_DOCKER}:ro,z
- ${TRAFFIC_DIR_HOST}:${TRAFFIC_DIR_DOCKER}:ro
environment:
TIMESCALE: ${TIMESCALE}
TULIP_TRAFFIC_DIR: ${TRAFFIC_DIR_DOCKER}
Expand Down
2 changes: 1 addition & 1 deletion services/api/Dockerfile-api
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ COPY . /app

STOPSIGNAL SIGINT

CMD ["python3", "webservice.py"]
CMD ["gunicorn", "-w", "3", "-t", "60", "--log-level", "debug", "--capture-output", "--enable-stdio-inheritance", "-b", "0.0.0.0:5000", "webservice:create_app()"]
1 change: 1 addition & 0 deletions services/api/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
Flask_Cors
Flask
requests
gunicorn
python-dateutil
psycopg[binary,pool]
3 changes: 3 additions & 0 deletions services/api/webservice.py
Original file line number Diff line number Diff line change
Expand Up @@ -303,6 +303,9 @@ def downloadFile():
)
)

def create_app():
db.open()
return application

if __name__ == "__main__":
try:
Expand Down