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

5
.gitignore vendored
View file

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

View file

@ -18,4 +18,5 @@ RUN mkdir -p /app/data && chmod 777 /app/data
EXPOSE 8000 EXPOSE 8000
# Lancer l'API et initialiser la DB au démarrage # 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: services:
vps-sage-api: vps-sage-api:
build: . build: .
@ -10,3 +8,4 @@ services:
ports: ports:
- "8000:8000" - "8000:8000"
restart: unless-stopped restart: unless-stopped
command: uvicorn api:app --host 0.0.0.0 --port 8000