diff --git a/delfland/ppo-insight/docker-compose.yml b/delfland/ppo-insight/docker-compose.yml index 6553f89..829415b 100644 --- a/delfland/ppo-insight/docker-compose.yml +++ b/delfland/ppo-insight/docker-compose.yml @@ -1,4 +1,4 @@ -# docker compose -f energyprices_docker-compose.yml up -d --build +# docker compose -f docker-compose.yml up -d --build version: "3.3" services: @@ -10,8 +10,9 @@ services: - PGID=1000 - TZ=Europe/Amsterdam ports: - - 5902:5000 - + - target: 5000 + published: 5902 + protocol: tcp build: dockerfile: ./Dockerfile env_file: diff --git a/delfland/ppo-insight/start.sh b/delfland/ppo-insight/start.sh index 7e3056c..5a336b1 100644 --- a/delfland/ppo-insight/start.sh +++ b/delfland/ppo-insight/start.sh @@ -6,5 +6,8 @@ cron # Start het Python-script currentprice.py python /app/ppo_insight.py & +# Start de Flask-app met Gunicorn (betere productie-optie) +gunicorn --bind 0.0.0.0:5000 ppo_insight:app --workers 4 & + # Wacht voor altijd zodat de container draaiende blijft tail -f /dev/null