Files
QCM_physique/docker-compose.yml
Puechberty Arthur a72f502342 first commit
2026-03-30 20:42:29 +02:00

24 lines
565 B
YAML

services:
web:
image: python:3.11-slim
working_dir: /app
volumes:
- ./:/app
ports:
- "5000:5000"
restart: unless-stopped
environment:
- PYTHONUNBUFFERED=1
- FLASK_ENV=production
command: sh -c "pip install --no-cache-dir -r requirements.txt && python webapp.py"
scraper:
image: python:3.11-slim
working_dir: /app
volumes:
- ./:/app
restart: unless-stopped
environment:
- PYTHONUNBUFFERED=1
command: sh -c "pip install --no-cache-dir -r requirements.txt && python main.py"