mirror of
https://github.com/ovosimpatico/xtream2m3u.git
synced 2026-01-15 08:22:56 -03:00
Use a proper WSGI server
This commit is contained in:
@@ -16,5 +16,5 @@ EXPOSE 5000
|
||||
# Define environment variable
|
||||
ENV FLASK_APP=run.py
|
||||
|
||||
# Run the application
|
||||
CMD ["flask", "run", "--host=0.0.0.0"]
|
||||
# Run the application using Gunicorn
|
||||
CMD ["gunicorn", "--bind", "0.0.0.0:5000", "run:app"]
|
||||
@@ -11,7 +11,6 @@
|
||||
|
||||
<p align="center">
|
||||
<a href="#about">About</a> •
|
||||
<a href="#features">Features</a> •
|
||||
<a href="#prerequisites">Prerequisites</a> •
|
||||
<a href="#installation">Installation</a> •
|
||||
<a href="#usage">Usage</a> •
|
||||
|
||||
@@ -6,4 +6,5 @@ services:
|
||||
- "5000:5000"
|
||||
environment:
|
||||
- FLASK_ENV=production
|
||||
- GUNICORN_CMD_ARGS="--workers=3"
|
||||
restart: unless-stopped
|
||||
@@ -1,2 +1,3 @@
|
||||
flask
|
||||
requests
|
||||
requests
|
||||
gunicorn
|
||||
Reference in New Issue
Block a user