mirror of
https://github.com/hoppscotch/hoppscotch.git
synced 2026-04-25 16:55:59 +03:00
[GH-ISSUE #3471] [bug]: Docker deploy Hoppscotch Community Edition error #1172
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#1172
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 @254579676 on GitHub (Oct 25, 2023).
Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/3471
Is there an existing issue for this?
Current behavior
Using individual containers for the services
According to your document, I followed the steps to start the Docker log, but the ports were not opened and the service did not start.I don't understand why there are these strange problems in the actual deployment process when the operation steps are so simple on the deployment document. I hope the document can be updated to ensure the correct deployment.
docker run -p 3000:3000 --env-file .env hoppscotch-frontend
docker run -p 3170:3170 --env-file .env hoppscotch-backend
docker run -p 3100:3100 --env-file .env hoppscotch-admin
.env
Steps to reproduce
then,i changed deploy
Using the AIO container
docker run -p 3000:3000 -p 3100:3100 -p 3170:3170 --env-file .env hoppscotch/hoppscotch
hoppscotch-frontend using 3000,opened ,is OK.but admin dashboard open is error ,logs like this:

Environment
Release
Version
Self-hosted
@liyasthomas commented on GitHub (Oct 25, 2023):
Hi @254579676, can you try securing your deployments by issuing TLS certificates and using
HTTPSsince we use secure HTTP cookies for authenticating users?Mentioned in the documentation: https://docs.hoppscotch.io/documentation/self-host/enterprise-edition/prerequisites
@balub commented on GitHub (Oct 25, 2023):
@254579676 may I see your
.envfile, have you added the URL to theWHITELISTED_ORIGINSenv variable?@andrei-micuda commented on GitHub (Oct 27, 2023):
I am having the exact same issue.
@Tzdy commented on GitHub (Oct 30, 2023):
You should use docker run -p 8080:8080 hoppscotch-frontend

@balub commented on GitHub (Nov 2, 2023):
@254579676 Can you remove all quotes in your env file and also remove all comments? something like this
@254579676 commented on GitHub (Nov 3, 2023):
@balub my .env update ,views,Can you please double-check the content and format of the .env file in the open-source project, including the double quotes and comments mentioned?
but dokcer isnot run up,logs like this
[root@vm100g test]# docker run -p 3000:3000 --env-file .env hoppscotch/hoppscotch-frontend
{"level":"info","ts":1698976923.970303,"msg":"using provided configuration","config_file":"/etc/caddy/Caddyfile","config_adapter":"caddyfile"}
{"level":"warn","ts":1698976923.9713116,"msg":"Caddyfile input is not formatted; run 'caddy fmt --overwrite' to fix inconsistencies","adapter":"caddyfile","file":"/etc/caddy/Caddyfile","line":2}
{"level":"info","ts":1698976923.9757588,"logger":"admin","msg":"admin endpoint started","address":"localhost:2019","enforce_origin":false,"origins":["//localhost:2019","//[::1]:2019","//127.0.0.1:2019"]}
{"level":"info","ts":1698976923.9761646,"logger":"tls.cache.maintenance","msg":"started background certificate maintenance","cache":"0xc000491e00"}
{"level":"info","ts":1698976923.9762704,"logger":"http.log","msg":"server running","name":"srv0","protocols":["h1","h2","h3"]}
{"level":"info","ts":1698976923.9764433,"msg":"autosaved config (load with --resume flag)","file":"/config/caddy/autosave.json"}
{"level":"info","ts":1698976923.9764512,"msg":"serving initial configuration"}
{"level":"info","ts":1698976923.976626,"logger":"tls","msg":"cleaning storage unit","description":"FileStorage:/data/caddy"}
{"level":"info","ts":1698976923.9766738,"logger":"tls","msg":"finished cleaning storage units"}
@Ev3rdown commented on GitHub (Nov 7, 2023):
From your screenshot, you use an IP address instead of localhost.
Make sure you have your config set accordingly :
WHITELISTED_ORIGINS=http://10.101.50.88:3170,http://10.101.50.88:3000,http://10.101.50.88:3100
Also, as liyasthomas suggested, you would be better using a proper environnement with a DNS name and TLS cert to avoid some weird issues.
@icsy7867 commented on GitHub (Nov 7, 2023):
Pinging here as this got me too...
So if you use the three separate containers, their internal listening port is:
8080, no 3000 and 3100.
But the backend, 3170 is 3170. So you should have for the front end, admin and backend respectively:
-p 3000:8080
-p 3100:8080
-p 3170:3170
@RezaBabapour commented on GitHub (Nov 13, 2023):
Same issue here, Admin and frontend listen on wrong ports.