Corrected what prevented container to run
This commit is contained in:
parent
d0db0e4077
commit
8b2c49b65c
4 changed files with 9 additions and 6 deletions
5
.gitignore
vendored
5
.gitignore
vendored
|
|
@ -33,6 +33,9 @@ htmlcov/
|
|||
.build/
|
||||
dist/
|
||||
|
||||
data/sage_dataven.db
|
||||
data/*.db
|
||||
data/*.db.bak
|
||||
|
||||
*.db
|
||||
|
||||
tools/
|
||||
|
|
@ -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.
|
|
@ -1,5 +1,3 @@
|
|||
version: "3.9"
|
||||
|
||||
services:
|
||||
vps-sage-api:
|
||||
build: .
|
||||
|
|
@ -10,3 +8,4 @@ services:
|
|||
ports:
|
||||
- "8000:8000"
|
||||
restart: unless-stopped
|
||||
command: uvicorn api:app --host 0.0.0.0 --port 8000
|
||||
|
|
|
|||
Loading…
Reference in a new issue