Skip to content

🔥 The free & Open Source DocuSign alternative

fix: issue of cannot post /login in local docker setup

prafull-opensignlabs91f3bdb2997f
diff --git a/.env.local_dev b/.env.local_dev
index 05b67ea82..e8ecd6df1 100644
--- a/.env.local_dev
+++ b/.env.local_dev
@@ -20,7 +20,7 @@ appName=open_sign_server
# A 12 character long random secret key that allows access to all the data. It is used in Parse dashboard config to view all the data in the database.
MASTER_KEY=XnAadwKxxByMr
# Mongodb URI to connect to
-MONGODB_URI=mongodb://localhost:27017/OpenSignDB
+MONGODB_URI=mongodb://host.docker.internal:27017/OpenSignDB
# Path on which APIs should be mounted. Do not change this. This variable shall be removed & value hardcoded in the source code in coming versions.
PARSE_MOUNT=/app
# Set it to the URL from where APIs will be accessible to the NodeJS functions, for local development it should be localhost:3000/api/app (use your local port number instead)
diff --git a/Makefile b/Makefile
index ad60da3d3..7c70890cf 100644
--- a/Makefile
+++ b/Makefile
@@ -1,6 +1,6 @@
build:
cp .env.local_dev .env
- cd apps/OpenSign && npm install && npm run build
+ cd apps/OpenSign && cp ../../.env.local_dev .env && npm install && npm run build
docker compose up --build --force-recreate
run:
diff --git a/apps/OpenSign/Dockerfile b/apps/OpenSign/Dockerfile
index 051503d52..e916c2679 100644
--- a/apps/OpenSign/Dockerfile
+++ b/apps/OpenSign/Dockerfile
@@ -21,5 +21,5 @@ EXPOSE 3000
# ENV NODE_ENV production
# Run the application
-ENTRYPOINT npm run start-dev
+ENTRYPOINT npm run start