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