From 6bc664bbe3a5a9881f3746cfb19c24e171716f3c Mon Sep 17 00:00:00 2001 From: BluLupo Date: Sun, 27 Apr 2025 18:32:25 +0200 Subject: [PATCH] Update README.md --- README.md | 35 ++++++++++++++++++----------------- 1 file changed, 18 insertions(+), 17 deletions(-) diff --git a/README.md b/README.md index 202feab..e414cf8 100644 --- a/README.md +++ b/README.md @@ -58,23 +58,24 @@ Questa applicazione utilizza Quart come web framework asincrono e Hypercorn come ```yml 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 +services: + quartapp: + image: python:3.10-slim + container_name: quartapp + working_dir: /app + ports: + - "127.0.0.1:5000:5000" + restart: always + command: > + sh -c " + apt-get update && + apt-get install -y git && + [ -d /app/.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 ``` 2 - Esegui il servizio con Docker Compose: