Skip to content

Open Source Wealth Management Software. Angular + NestJS + Prisma + Nx + TypeScript 🤍

Modify default exposed port (#1681)

BeauAgstefed7e3c2baf
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 2afe206bb3..290257c263 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -9,6 +9,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Changed
+- Set the exposed port as an environment variable (`PORT`) in `Dockerfile`
- Upgraded `chart.js` from version `4.0.1` to `4.2.0`
- Upgraded `prettier` from version `2.8.1` to `2.8.4`
diff --git a/Dockerfile b/Dockerfile
index 33ef2d95f7..cdebe275d9 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -57,5 +57,5 @@ RUN apt update && apt install -y \
COPY --from=builder /ghostfolio/dist/apps /ghostfolio/apps
WORKDIR /ghostfolio/apps/api
-EXPOSE 3333
+EXPOSE ${PORT:-3333}
CMD [ "yarn", "start:prod" ]