---
title: "Rich Bernhardt (@RichBern) | Hashnode"
description: "Rich Bernhardt (@RichBern) writes on Hashnode. Read their latest articles and follow their work."
url: "https://hashnode.com/@RichBern"
---

@RichBern

# Rich Bernhardt

@RichBern · Joined July 2022

## Comments

[Simen Daehlin Many thanks Simen, for your prompt response. The extra line in environment PORT: ${PORT} didn't help, but extending the "strapi::cors" value in config > middlewares.js did solve the issue, although this forum does not allow me to share it.](https://hashnode.com/posts/docker-with-strapi-v4/61dcb820cda0d0294b69c3cd/comment/62cd5e093ba400c1d12e50c0#reply-62cd72808e6c0fc1acab447c)

Reply · Article · Jul 12, 2022 · [🐳 Docker with Strapi V4 🌟](https://hashnode.com/posts/docker-with-strapi-v4/61dcb820cda0d0294b69c3cd)

[Hi Simen Many thanks for this post. Just one question. I've tried to change the port number with no success. Have you ever managed to serve dockerized strapi v4 on a port other than 1337? If so, have you employed anything else on top of the below settings? .env PORT=3024 docker-compose.yml ... ports: - "${PORT}:${PORT}" ... I've changed both side of the ports' config as strapi runs on the port set in .env. Following start strapi, the login panel shows up, but clicking the log in button returns with internal server error (500).](https://hashnode.com/posts/docker-with-strapi-v4/61dcb820cda0d0294b69c3cd/comment/62cd5e093ba400c1d12e50c0)

Comment · Article · Jul 12, 2022 · [🐳 Docker with Strapi V4 🌟](https://hashnode.com/posts/docker-with-strapi-v4/61dcb820cda0d0294b69c3cd)
