From 6c5619ec9eb5017c40b3afa4cb35813b23423bd0 Mon Sep 17 00:00:00 2001 From: Ran Shamay Date: Thu, 16 Nov 2023 14:45:07 +0200 Subject: [PATCH] use 3000 port --- Dockerfile | 2 +- charts/planka/README.md | 2 +- charts/planka/values.yaml | 4 ++-- client/src/constants/Config.js | 2 +- docker-compose.yml | 2 +- server/.env.sample | 2 +- 6 files changed, 7 insertions(+), 7 deletions(-) diff --git a/Dockerfile b/Dockerfile index 0952b872..93f0459e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -44,6 +44,6 @@ VOLUME /app/public/user-avatars VOLUME /app/public/project-background-images VOLUME /app/private/attachments -EXPOSE 1337 +EXPOSE 3000 CMD ["./start.sh"] diff --git a/charts/planka/README.md b/charts/planka/README.md index eebdb79d..504388a0 100644 --- a/charts/planka/README.md +++ b/charts/planka/README.md @@ -29,7 +29,7 @@ helm install planka . --set secretkey=$SECRETKEY To access Planka you can port forward using the following command: ```bash -kubectl port-forward $POD_NAME 3000:1337 +kubectl port-forward $POD_NAME 3000:3000 ``` ### Accessing Externally diff --git a/charts/planka/values.yaml b/charts/planka/values.yaml index 7d6e319a..7c657961 100644 --- a/charts/planka/values.yaml +++ b/charts/planka/values.yaml @@ -45,7 +45,7 @@ securityContext: {} service: type: ClusterIP - port: 1337 + port: 3000 ingress: enabled: false @@ -106,6 +106,6 @@ persistence: enabled: false # existingClaim: netbox-data # storageClass: "-" - + accessMode: ReadWriteOnce size: 10Gi diff --git a/client/src/constants/Config.js b/client/src/constants/Config.js index 50128e09..4bc04938 100755 --- a/client/src/constants/Config.js +++ b/client/src/constants/Config.js @@ -5,7 +5,7 @@ const BASE_PATH = BASE_URL.replace(/^.*\/\/[^/]*(.*)[^?#]*.*$/, '$1'); const SERVER_BASE_URL = process.env.REACT_APP_SERVER_BASE_URL || - (process.env.NODE_ENV === 'production' ? BASE_URL : 'http://localhost:1337'); + (process.env.NODE_ENV === 'production' ? BASE_URL : 'http://localhost:3000'); const SERVER_HOST_NAME = SERVER_BASE_URL.replace(/^(.*\/\/[^/?#]*).*$/, '$1'); diff --git a/docker-compose.yml b/docker-compose.yml index c77790de..cf1be0b1 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -17,7 +17,7 @@ services: - project-background-images:/app/public/project-background-images - attachments:/app/private/attachments ports: - - 3000:1337 + - 3000:3000 environment: - BASE_URL=http://localhost:3000 - TRUST_PROXY=0 diff --git a/server/.env.sample b/server/.env.sample index 36de1985..c4d1e78b 100644 --- a/server/.env.sample +++ b/server/.env.sample @@ -1,6 +1,6 @@ ## Required -BASE_URL=http://localhost:1337 +BASE_URL=http://localhost:3000 DATABASE_URL=postgresql://postgres@localhost/planka SECRET_KEY=notsecretkey