celery-integration
peter.fong 9 months ago
parent 52a580303f
commit 8d69c99982

@ -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:

@ -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

Loading…
Cancel
Save