Skip to content

Commit 8f9f8ec

Browse files
Add Komodo Compose stack for SkyMoon UI demo
1 parent bd8266b commit 8f9f8ec

3 files changed

Lines changed: 47 additions & 0 deletions

File tree

‎compose.demo.yml‎

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
services:
2+
skymoon-ui:
3+
build:
4+
context: ./ui
5+
dockerfile: Dockerfile.demo
6+
container_name: skymoon-ui-demo
7+
restart: unless-stopped
8+
ports:
9+
- "5080:80"

‎ui/Dockerfile.demo‎

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
FROM node:24-bookworm AS build
2+
3+
WORKDIR /app
4+
5+
COPY package*.json ./
6+
RUN npm ci --legacy-peer-deps --no-audit --no-fund
7+
8+
COPY . .
9+
10+
ENV NODE_OPTIONS=--openssl-legacy-provider
11+
RUN npm run build
12+
13+
FROM nginx:alpine
14+
15+
COPY --from=build /app/dist/ /usr/share/nginx/html/
16+
COPY nginx/demo.conf /etc/nginx/conf.d/default.conf
17+
18+
EXPOSE 80

‎ui/nginx/demo.conf‎

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
server {
2+
listen 80;
3+
server_name _;
4+
5+
root /usr/share/nginx/html;
6+
index index.html;
7+
8+
location / {
9+
try_files $uri $uri/ /index.html;
10+
}
11+
12+
location /client/ {
13+
proxy_pass https://qa.cloudstack.cloud;
14+
proxy_ssl_server_name on;
15+
proxy_set_header Host qa.cloudstack.cloud;
16+
proxy_cookie_domain qa.cloudstack.cloud $host;
17+
proxy_redirect https://qa.cloudstack.cloud/ /;
18+
add_header Cache-Control "no-store" always;
19+
}
20+
}

0 commit comments

Comments
 (0)