Create docker-compose.yml

Add docker-compose.yml
This commit is contained in:
2025-04-01 22:31:14 +02:00
committed by GitHub
parent 66ed841373
commit 1e6aae3931

19
docker-compose.yml Normal file
View File

@@ -0,0 +1,19 @@
version: "3.9"
services:
quartapp:
image: python:3.10-slim
container_name: herselquart
working_dir: /app
ports:
- "127.0.0.1:5000:5000"
command: >
sh -c "
apt-get update &&
apt-get install -y git &&
git clone https://github.com/BluLupo/hersel.it.git /app &&
pip install --no-cache-dir -r requirements.txt &&
hypercorn -c hypercorn_config.toml app:app
"
environment:
- PYTHONUNBUFFERED=1