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"