diff --git a/.gitignore b/.gitignore index fe762fa..f1f93a8 100644 --- a/.gitignore +++ b/.gitignore @@ -33,6 +33,9 @@ htmlcov/ .build/ dist/ -data/sage_dataven.db +data/*.db +data/*.db.bak -tools/ \ No newline at end of file +*.db + +tools/ diff --git a/Dockerfile b/Dockerfile index 0348090..bfa7509 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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"] \ No newline at end of file +#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"] diff --git a/data/sage_dataven.db b/data/sage_dataven.db deleted file mode 100644 index 2550603..0000000 Binary files a/data/sage_dataven.db and /dev/null differ diff --git a/docker-compose.yml b/docker-compose.yml index e9ee1bc..0ac250d 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -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 \ No newline at end of file + restart: unless-stopped + command: uvicorn api:app --host 0.0.0.0 --port 8000