Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions mesher/Caddyfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
auto_https off
}

# Route the public site to landing
hyperpush.dev, www.hyperpush.dev {
reverse_proxy landing:3000
}

# Local-only HTTP routes for development
http://localhost, http://localhost:3000 {
reverse_proxy landing:3000
}

http://app.localhost, http://app.localhost:3000 {
reverse_proxy app:3000
}

# Route app subdomain to frontend-exp
app.hyperpush.dev {
reverse_proxy app:3000
}
31 changes: 31 additions & 0 deletions mesher/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
services:
landing:
build: ./landing
restart: unless-stopped
expose:
- "3000"

app:
build: ./frontend-exp
restart: unless-stopped
expose:
- "3000"

proxy:
image: caddy:2-alpine
restart: unless-stopped
depends_on:
- landing
- app
ports:
- "80:80"
- "3000:80"
- "443:443"
volumes:
- ./Caddyfile:/etc/caddy/Caddyfile:ro
- caddy_data:/data
- caddy_config:/config

volumes:
caddy_data:
caddy_config:
8 changes: 8 additions & 0 deletions mesher/frontend-exp/.dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
node_modules
.next
.git
.github
.bg-shell
.DS_Store
npm-debug.log*
pnpm-debug.log*
18 changes: 18 additions & 0 deletions mesher/frontend-exp/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
FROM node:20-slim
WORKDIR /app

ENV NEXT_TELEMETRY_DISABLED=1
RUN corepack enable

COPY package.json pnpm-lock.yaml ./
RUN pnpm install --frozen-lockfile

COPY . .
RUN pnpm build

ENV NODE_ENV=production
ENV HOSTNAME=0.0.0.0
ENV PORT=3000

EXPOSE 3000
CMD ["pnpm", "start"]
2 changes: 1 addition & 1 deletion mesher/frontend-exp/next-env.d.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/// <reference types="next" />
/// <reference types="next/image-types/global" />
import "./.next/types/routes.d.ts";
import "./.next/dev/types/routes.d.ts";

// NOTE: This file should not be edited
// see https://nextjs.org/docs/app/api-reference/config/typescript for more information.
Loading
Loading