Update README.md
This commit is contained in:
35
README.md
35
README.md
@@ -58,23 +58,24 @@ Questa applicazione utilizza Quart come web framework asincrono e Hypercorn come
|
|||||||
```yml
|
```yml
|
||||||
version: "3.9"
|
version: "3.9"
|
||||||
|
|
||||||
services:
|
services:
|
||||||
quartapp:
|
quartapp:
|
||||||
image: python:3.10-slim
|
image: python:3.10-slim
|
||||||
container_name: herselquart
|
container_name: quartapp
|
||||||
working_dir: /app
|
working_dir: /app
|
||||||
ports:
|
ports:
|
||||||
- "127.0.0.1:5000:5000"
|
- "127.0.0.1:5000:5000"
|
||||||
command: >
|
restart: always
|
||||||
sh -c "
|
command: >
|
||||||
apt-get update &&
|
sh -c "
|
||||||
apt-get install -y git &&
|
apt-get update &&
|
||||||
git clone https://github.com/BluLupo/hersel.it.git /app &&
|
apt-get install -y git &&
|
||||||
pip install --no-cache-dir -r requirements.txt &&
|
[ -d /app/.git ] || git clone https://github.com/BluLupo/hersel.it.git /app &&
|
||||||
hypercorn -c hypercorn_config.toml app:app
|
pip install --no-cache-dir -r requirements.txt &&
|
||||||
"
|
hypercorn -c hypercorn_config.toml app:app
|
||||||
environment:
|
"
|
||||||
- PYTHONUNBUFFERED=1
|
environment:
|
||||||
|
- PYTHONUNBUFFERED=1
|
||||||
```
|
```
|
||||||
|
|
||||||
2 - Esegui il servizio con Docker Compose:
|
2 - Esegui il servizio con Docker Compose:
|
||||||
|
|||||||
Reference in New Issue
Block a user