---
title: "Simen Daehlin (@eventyret) | Hashnode"
description: "Coding made easy. Read the latest articles by Simen Daehlin on Hashnode."
url: "https://hashnode.com/@eventyret"
---

@eventyret

# Simen Daehlin

@eventyret · United Kingdom · Joined February 2021

Coding made easy

[Website](https://dehlin.dev/)

## Comments

[Thanks the idea is not to move node modules into it as it gives more attack surface, but will re-test it. Did you try the npx tool I created which auto creates the files etc as needed?](https://hashnode.com/posts/docker-with-strapi-v4/61dcb820cda0d0294b69c3cd/comment/6322d01007b36072368a03f7#reply-6322d37d776a69866dd6d3ac)

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

[Not to sure how much it will be with the tutorial. But not working while in a container might be that you have to expose the ports to allow sending emails. When it comes to default sender etc, i think you can pass variables into it, but by default there is none i think](https://hashnode.com/posts/docker-with-strapi-v4/61dcb820cda0d0294b69c3cd/comment/630f6da156df9e8e50259627#reply-630f6e1575af73ad1f061507)

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

[Hello Igor Frolov For npm you want to use npm start it's part of NPM hence why it doesn't need a script command in package.json this is if you want to override it. npm start will start in production](https://hashnode.com/posts/docker-with-strapi-v4/61dcb820cda0d0294b69c3cd/comment/62ef682ce3a3793580e022d1#reply-62ef80bbba649046e8d8f38b)

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

[So in very simple terms. It's because it minimized attack surface of a container. Think of it in this scenario. node\_modules where your web browser / server is running it can be exploited. Meaning I can get access to the container and I can go up the chain. If it's OUTSIDE, I get fewer exploits and have to go up further again.](https://hashnode.com/posts/docker-with-strapi-v4/61dcb820cda0d0294b69c3cd/comment/62e7ee8a430bd1d04a8476be#reply-62ea33e116f9480a9dac4efb)

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

[kalle Tool has been updated quite a bit now.](https://hashnode.com/posts/strapi-v4-with-docker-and-heroku/6202b7cbb6c216065a359dde/comment/62ca9c14bffc4694f5bc434c#reply-62ea23ae16f9480a9dac4bde)

Reply · Article · Aug 3, 2022 · [Strapi ⭐️ V4 with Docker 🐳 and Heroku](https://hashnode.com/posts/strapi-v4-with-docker-and-heroku/6202b7cbb6c216065a359dde)

[Not to sure, i think that will depend on the project. I updated the guide kalle but didn't have any issues deploying it after that. I been working on a tool to help with heroku deployment to at least help with some of the issues people have. If you want to hit me up on Strapi Discord in a DM Feel free to and we can look into it. Normally if you get that error it seems it's a server error and it's not running as smooth as you want.](https://hashnode.com/posts/strapi-v4-with-docker-and-heroku/6202b7cbb6c216065a359dde/comment/62dba73838759e6b49829aae#reply-62dba7b838759e6b49829ac0)

Reply · Article · Jul 23, 2022 · [Strapi ⭐️ V4 with Docker 🐳 and Heroku](https://hashnode.com/posts/strapi-v4-with-docker-and-heroku/6202b7cbb6c216065a359dde)

[Rich Bernhardt Oh that is good, if you want to send me a DM on discord find Eventyret on Strapi Discord server and I can try update the guide with what you did](https://hashnode.com/posts/docker-with-strapi-v4/61dcb820cda0d0294b69c3cd/comment/62cd5e093ba400c1d12e50c0#reply-62cdb01a24f934c8169852cb)

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

[Hello Rich Bernhardt 👋 So I have many times, it really depends how you setup the project. If you are ONLY using the Dockerfile and not docker compose, you will need to change the .env and also expose the correct port in Dockerfile under EXPOSE. IF you are using docker-compose you still need to PASS port into as a variable, as I don't think the file is doing it ... environment: PORT: ${PORT} port: - "${PORT}:${PORT}" Else docker-compose won't have access to the environmental variable etc. In docker-compose I also normally then just do port: - "${PORT}:1337" That way I can control it what the OUT port is and not what strapi uses by default I just proxy it to my own port.](https://hashnode.com/posts/docker-with-strapi-v4/61dcb820cda0d0294b69c3cd/comment/62cd5e093ba400c1d12e50c0#reply-62cd5f098e6c0fc1acab40f6)

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

[To add a answer Ezequiel Lamonica and kalle heroku config:set APP\_KEYS=$(openssl rand -hex 64) -a awesomestrapi heroku config:set API\_TOKEN\_SALT=$(openssl rand -hex 32) -a awesomestrapi heroku config:set ADMIN\_JWT\_SECRET=$(openssl rand -hex 32) -a awesomestrapi heroku config:set JWT\_SECRET=$(openssl rand -hex 32) -a awesomestrapi This will generate APP\_KEYS, API\_TOKEN\_SALT, ADMIN\_JWT\_SECRET, JWT\_SECRET all needed to make strapi run If you are running on the latest Strapi you need to generate more token keys to sort out what it was. Will update the thread with this.](https://hashnode.com/posts/strapi-v4-with-docker-and-heroku/6202b7cbb6c216065a359dde/comment/62ca9c14bffc4694f5bc434c#reply-62caade1bffc4694f5bc4615)

Reply · Article · Jul 10, 2022 · [Strapi ⭐️ V4 with Docker 🐳 and Heroku](https://hashnode.com/posts/strapi-v4-with-docker-and-heroku/6202b7cbb6c216065a359dde)

[Yeah just made a tool for strapi so havnt had time. Goal is to revisit thr article and update it to latest version over the July month. Have you asked for any assistance on thr strapi forum or discord?](https://hashnode.com/posts/strapi-v4-with-docker-and-heroku/6202b7cbb6c216065a359dde/comment/62ca9c14bffc4694f5bc434c#reply-62caa226e62bf98e0fb0a149)

Reply · Article · Jul 10, 2022 · [Strapi ⭐️ V4 with Docker 🐳 and Heroku](https://hashnode.com/posts/strapi-v4-with-docker-and-heroku/6202b7cbb6c216065a359dde)
