diff --git a/Dockerfile b/Dockerfile index 0b7e634..c252e32 100644 --- a/Dockerfile +++ b/Dockerfile @@ -10,4 +10,4 @@ COPY main.py . RUN mkdir /uploads COPY uploads/test.txt /uploads/test.txt -CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8000"] \ No newline at end of file +CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8899"] \ No newline at end of file diff --git a/compose.yaml b/compose.yaml index e80b241..50f15f1 100644 --- a/compose.yaml +++ b/compose.yaml @@ -2,9 +2,8 @@ services: uploader: build: . container_name: file-uploader - ports: - - "8899:8000" - environment: - UPLOAD_HASH: "${UPLOAD_HASH}" + network_mode: host + env_file: + - .env volumes: - ./uploads:/uploads \ No newline at end of file