Corrected what prevented container to run

This commit is contained in:
fanilo 2025-12-30 05:20:52 +00:00
parent d0db0e4077
commit 8b2c49b65c
4 changed files with 9 additions and 6 deletions

7
.gitignore vendored
View file

@ -33,6 +33,9 @@ htmlcov/
.build/
dist/
data/sage_dataven.db
data/*.db
data/*.db.bak
tools/
*.db
tools/

View file

@ -18,4 +18,5 @@ RUN mkdir -p /app/data && chmod 777 /app/data
EXPOSE 8000
# Lancer l'API et initialiser la DB au démarrage
CMD ["sh", "-c", "python init_db.py && uvicorn api:app --host 0.0.0.0 --port 8000 --reload"]
#CMD ["sh", "-c", "python init_db.py && uvicorn api:app --host 0.0.0.0 --port 8000 --reload"]
CMD ["sh", "-c", "python init_db.py && uvicorn api:app --host 0.0.0.0 --port 8000"]

Binary file not shown.

View file

@ -1,5 +1,3 @@
version: "3.9"
services:
vps-sage-api:
build: .
@ -9,4 +7,5 @@ services:
- ./data:/app/data
ports:
- "8000:8000"
restart: unless-stopped
restart: unless-stopped
command: uvicorn api:app --host 0.0.0.0 --port 8000