fix: docker compose
This commit is contained in:
@@ -17,8 +17,8 @@ RUN pip install --no-cache-dir -r requirements.txt
|
|||||||
COPY . .
|
COPY . .
|
||||||
|
|
||||||
# Exposer le port
|
# Exposer le port
|
||||||
EXPOSE 8000
|
EXPOSE 3000
|
||||||
|
|
||||||
# Commande pour démarrer l'application
|
# Commande pour démarrer l'application
|
||||||
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8000"]
|
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "3000"]
|
||||||
|
|
||||||
|
|||||||
@@ -2,10 +2,11 @@ version: '3.8'
|
|||||||
|
|
||||||
services:
|
services:
|
||||||
api:
|
api:
|
||||||
build: .
|
build:
|
||||||
container_name: anime_tracker_api
|
context: .
|
||||||
|
dockerfile: Dockerfile
|
||||||
ports:
|
ports:
|
||||||
- "8012:8000"
|
- "3000"
|
||||||
environment:
|
environment:
|
||||||
- DATABASE_URL=${DATABASE_URL:-postgresql://user:password@host:5432/anime_tracker}
|
- DATABASE_URL=${DATABASE_URL:-postgresql://user:password@host:5432/anime_tracker}
|
||||||
- SECRET_KEY=${SECRET_KEY:-change-this-secret-key-in-production-min-32-characters-long}
|
- SECRET_KEY=${SECRET_KEY:-change-this-secret-key-in-production-min-32-characters-long}
|
||||||
|
|||||||
Reference in New Issue
Block a user