From 0739de4b4477b91f8168a3ffec3106b2c56f45fc Mon Sep 17 00:00:00 2001 From: Bjoern Runden Date: Mon, 3 Aug 2026 16:26:23 +0200 Subject: [PATCH] =?UTF-8?q?portsettings=20f=C3=BCr=20docker=20+=20cli=20no?= =?UTF-8?q?ch=20angepasst.=20jetzt=20ist=20.env=20f=C3=BChrend?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app.py | 2 +- docker-compose.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app.py b/app.py index 0e5cd01..e770230 100644 --- a/app.py +++ b/app.py @@ -229,4 +229,4 @@ app = create_app() if __name__ == '__main__': # This allows running the app directly with python app.py # In production, use gunicorn or other WSGI servers - app.run(host='0.0.0.0', port=5000, debug=app.config['DEBUG']) + app.run(host='0.0.0.0', port=int(os.environ.get('PORT', 5000)), debug=app.config['DEBUG']) diff --git a/docker-compose.yml b/docker-compose.yml index 2785942..0754af1 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -5,7 +5,7 @@ services: dockerfile: Dockerfile container_name: formeleon-app ports: - - "5000:5000" + - "${PORT:-5000}:5000" volumes: # Mount entire project directory for hot-reload in development # Exclude the virtual environment if it exists locally to prevent conflicts with container venv