mirror of
https://github.com/arthur-pbty/QCM_physique.git
synced 2026-06-03 15:07:33 +02:00
24 lines
565 B
YAML
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"
|