Skip to content

A one-of-a-kind resume builder that keeps your privacy in mind. Completely secure, customizable, portable, open-source and free forever. Try it out today!

ci(docker): add env port to dockerfile, use port env instead of server_port

Amruth Pillaid79997d380e7
diff --git a/.env.example b/.env.example
index 982b7a1e8..c5f8f3021 100644
--- a/.env.example
+++ b/.env.example
@@ -3,8 +3,8 @@ TZ=UTC
SECRET_KEY=change-me
# URLs
-PUBLIC_APP_URL=https://localhost:3000
-PUBLIC_SERVER_URL=https://localhost:3100
+PUBLIC_APP_URL=http://localhost:3000
+PUBLIC_SERVER_URL=http://localhost:3100
# Database
POSTGRES_HOST=localhost
diff --git a/client/Dockerfile b/client/Dockerfile
index c4e156d9e..9d1de4ba5 100644
--- a/client/Dockerfile
+++ b/client/Dockerfile
@@ -46,4 +46,6 @@ RUN pnpm install -F client --frozen-lockfile --prod
EXPOSE 3000
+ENV PORT 3000
+
CMD [ "pnpm", "run", "start:client" ]
\ No newline at end of file
diff --git a/server/Dockerfile b/server/Dockerfile
index ebd600dbc..51fff336f 100644
--- a/server/Dockerfile
+++ b/server/Dockerfile
@@ -42,4 +42,6 @@ RUN pnpm install -F server --frozen-lockfile --prod
EXPOSE 3100
+ENV PORT 3100
+
CMD [ "pnpm", "run", "start:server" ]
\ No newline at end of file
diff --git a/server/src/config/app.config.ts b/server/src/config/app.config.ts
index 7ddf4cafe..d7f2bda49 100644
--- a/server/src/config/app.config.ts
+++ b/server/src/config/app.config.ts
@@ -4,7 +4,7 @@ export default registerAs('app', () => ({
timezone: process.env.TZ,
environment: process.env.NODE_ENV,
secretKey: process.env.SECRET_KEY,
- port: parseInt(process.env.SERVER_PORT, 10) || 3100,
+ port: parseInt(process.env.PORT, 10) || 3100,
url: process.env.PUBLIC_APP_URL || 'http://localhost:3000',
serverUrl: process.env.PUBLIC_SERVER_URL || 'http://localhost:3100',
}));