chore: hoppscotch-app supports std http ports

This commit is contained in:
Balu Babu
2023-11-13 01:42:23 +05:30
parent 64517a53af
commit 28059ddc60
4 changed files with 10 additions and 6 deletions

View File

@@ -42,7 +42,8 @@ services:
depends_on:
- hoppscotch-backend
ports:
- "3000:8080"
- "3080:80"
- "3000:3000"
# The Self Host dashboard for managing the app. This will be hosted at port 3100
# NOTE: To do TLS or play around with how the app is hosted, you can look into the Caddyfile for
@@ -136,7 +137,8 @@ services:
depends_on:
- hoppscotch-old-backend
ports:
- "3000:8080"
- "3080:80"
- "3000:3000"
hoppscotch-old-sh-admin:
container_name: hoppscotch-old-sh-admin

View File

@@ -1,4 +1,4 @@
:8080 {
:80 :3000 {
try_files {path} /
root * /site
file_server

View File

@@ -18,4 +18,5 @@ WORKDIR /site
COPY packages/hoppscotch-selfhost-web/Caddyfile /etc/caddy/Caddyfile
COPY --from=builder /usr/src/app/packages/hoppscotch-selfhost-web/dist/ .
EXPOSE 8080
EXPOSE 80
EXPOSE 3000

View File

@@ -31,12 +31,13 @@ RUN pnpm run generate
FROM caddy:2-alpine as app
WORKDIR /site
COPY --from=fe_builder /usr/src/app/packages/hoppscotch-sh-admin/prod_run.mjs /usr
COPY --from=fe_builder /usr/src/app/packages/hoppscotch-selfhost-web/prod_run.mjs /usr
COPY --from=fe_builder /usr/src/app/packages/hoppscotch-selfhost-web/Caddyfile /etc/caddy/Caddyfile
COPY --from=fe_builder /usr/src/app/packages/hoppscotch-selfhost-web/dist/ .
RUN apk add nodejs npm
RUN npm install -g @import-meta-env/cli
EXPOSE 8080
EXPOSE 80
EXPOSE 3000
CMD ["/bin/sh", "-c", "node /usr/prod_run.mjs && caddy run --config /etc/caddy/Caddyfile --adapter caddyfile"]
FROM base_builder as sh_admin_builder