mirror of
https://github.com/hoppscotch/hoppscotch.git
synced 2026-04-25 16:55:59 +03:00
[GH-ISSUE #3405] [bug]: error at build #1143
Labels
No labels
CodeDay
a11y
browser limited
bug
bug fix
cli
core
critical
design
desktop
discussion
docker
documentation
duplicate
enterprise
feature
feature
fosshack
future
good first issue
hacktoberfest
help wanted
i18n
invalid
major
minor
need information
need testing
not applicable to hoppscotch
not reproducible
pull-request
question
refactor
resolved
sandbox
self-host
spam
stale
testmu
wip
wont fix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/hoppscotch#1143
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @vinicius-simfrete on GitHub (Sep 29, 2023).
Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/3405
Is there an existing issue for this?
Current behavior
When I started building, I encountered an error in pnpm as shown below:
I have 64g of RAM for the application. Docker dont start and when i up the container;
I tried to start Docker with the following configuration file:
version: "3.7"
services:
This service runs the backend app in the port 3170
hoppscotch-backend:
container_name: hoppscotch-backend
build:
dockerfile: prod.Dockerfile
context: .
target: backend
env_file:
- ./.env
restart: always
environment:
# Edit the below line to match your PostgresDB URL if you have an outside DB (make sure to update the .env file as well)
- DATABASE_URL=postgresql://************************************************************************?connect_timeout=300
- PORT=3170
volumes:
# Uncomment the line below when modifying code. Only applicable when using the "dev" target.
# - ./packages/hoppscotch-backend/:/usr/src/app
- /usr/src/app/node_modules/
ports:
- "3170:3170"
hoppscotch-app:
container_name: hoppscotch-app
build:
dockerfile: prod.Dockerfile
context: .
target: app
env_file:
- ./.env
depends_on:
- hoppscotch-backend
ports:
- "3000:8080"
hoppscotch-sh-admin:
container_name: hoppscotch-sh-admin
build:
dockerfile: prod.Dockerfile
context: .
target: sh_admin
env_file:
- ./.env
depends_on:
- hoppscotch-backend
ports:
- "3100:8080"
My file .env
#-----------------------Backend Config------------------------------#
Prisma Config
DATABASE_URL=****************************************************************************
Auth Tokens Config
JWT_SECRET=secretcode123
TOKEN_SALT_COMPLEXITY=10
MAGIC_LINK_TOKEN_VALIDITY=3
REFRESH_TOKEN_VALIDITY=604800000
ACCESS_TOKEN_VALIDITY=86400000
SESSION_SECRET=anothersecretcode123
Hoppscotch App Domain Config
REDIRECT_URL=http://localhost:3000
WHITELISTED_ORIGINS=http://localhost:3170,http://localhost:3000,http://localhost:3100
VITE_ALLOWED_AUTH_PROVIDERS=EMAIL
Google Auth Config
#GOOGLE_CLIENT_ID=*****
#GOOGLE_CLIENT_SECRET=*****
#GOOGLE_CALLBACK_URL=http://localhost:3170/v1/auth/google/callback
#GOOGLE_SCOPE=email,profile
Github Auth Config
#GITHUB_CLIENT_ID=*****
#GITHUB_CLIENT_SECRET=****
#GITHUB_CALLBACK_URL=http://localhost:3170/v1/auth/github/callback
#GITHUB_SCOPE=user:email
Microsoft Auth Config
#MICROSOFT_CLIENT_ID=*****
#MICROSOFT_CLIENT_SECRET=*****
#MICROSOFT_CALLBACK_URL=http://localhost:3170/v1/auth/microsoft/callback
#MICROSOFT_SCOPE=user.read
#MICROSOFT_TENANT=common
Mailer config
MAILER_SMTP_URL=********************************************************************************
MAILER_ADDRESS_FROM="*******************************"
Rate Limit Config
RATE_LIMIT_TTL=60
RATE_LIMIT_MAX=100
#-----------------------Frontend Config------------------------------#
Base URLs
VITE_BASE_URL=http://localhost:3000
VITE_SHORTCODE_BASE_URL=http://localhost:3000
VITE_ADMIN_URL=http://localhost:3100
Backend URLs
VITE_BACKEND_GQL_URL=http://localhost:3170/graphql
VITE_BACKEND_WS_URL=wss://localhost:3170/graphql
VITE_BACKEND_API_URL=http://localhost:3170/v1
Steps to reproduce
Environment
Production
Version
Local
@jordibeen commented on GitHub (Oct 2, 2023):
Duplicate of 3321 and 3378
@joeljstephen commented on GitHub (Apr 18, 2024):
@vinicius-simfrete Are you still facing this issue on the latest builds? If not, I will be closing this issue in a few days.