Repository: mealie-recipes/mealie
Pull request: Changed uvicorn port to 80
Closes #55 

Problem statement:
Dockerfile exposes port 80, but runs on port 9000
The Dockerfile exposes port 80 (Inherited from tiangolo/uvicorn-gunicorn-fastapi which in turn inherits it from tiangolo/uvicorn-gunicorn), but the cmd in the dockerfile runs uvicorn on port 9000. I don't think there's any problem in running on port 80 in docker, since nothing else will run on the containers port 80 - and users can map the port however they like (The docker-compose.yml already maps to a different port than 9000).

Hints from issue discussion:

Commit message: Changed port in docker-compose to match dockerfile

Patch to review:
diff --git a/Dockerfile b/Dockerfile
index c79a16c3a8b..b19242d2e78 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -21,4 +21,4 @@ COPY ./mealie /app
 COPY ./mealie/data/templates/recipes.md /app/data/templates/
 COPY --from=build-stage /app/dist /app/dist
 
-CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "9000"]
\ No newline at end of file
+CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "80"]
\ No newline at end of file
diff --git a/docker-compose.yml b/docker-compose.yml
index 77a722672d0..db620e8d763 100644
--- a/docker-compose.yml
+++ b/docker-compose.yml
@@ -9,13 +9,7 @@ services:
     container_name: mealie
     restart: always
     ports:
-      - 9090:9000
-    environment:
-      db_username: root
-      db_password: example
-      db_host: mongo
-      db_port: 27017
-    volumes:
+      - 9090:80
       - ./mealie/data/img:/app/data/img
       - ./mealie/data/backups:/app/data/backups
   mongo:


Code review comments:
diff_hunk: @@ -9,13 +9,7 @@ services:
     container_name: mealie
     restart: always
     ports:
-      - 9090:9000
-    environment:
-      db_username: root
-      db_password: example
-      db_host: mongo
-      db_port: 27017
-    volumes:
+      - 9090:80
       - ./mealie/data/img:/app/data/img
path: docker-compose.yml
text: @user1:
Your docker-compose will not work.