initial COM1 gateway system blueprint
This commit is contained in:
5
stack/.env
Normal file
5
stack/.env
Normal file
@@ -0,0 +1,5 @@
|
||||
DNS_ROOT_IP=49.12.97.28
|
||||
SUBDOMAINS="api.hx-ki.com ui.hx-ki.com"
|
||||
|
||||
api=91.98.70.222:8080
|
||||
ui=91.98.70.222:3000
|
||||
22
stack/Dockerfile
Normal file
22
stack/Dockerfile
Normal file
@@ -0,0 +1,22 @@
|
||||
FROM node:20-alpine
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
# Paketinfos
|
||||
COPY package.json ./
|
||||
|
||||
# Dependencies installieren (inkl. dev, weil Build Vite + esbuild braucht)
|
||||
RUN npm install
|
||||
|
||||
# Restliches Projekt kopieren
|
||||
COPY . .
|
||||
|
||||
# Production-Build (Front + Server)
|
||||
RUN npm run build
|
||||
|
||||
ENV NODE_ENV=production
|
||||
ENV PORT=3003
|
||||
|
||||
EXPOSE 3003
|
||||
|
||||
CMD ["npm", "start"]
|
||||
9
stack/docker-compose.yml
Normal file
9
stack/docker-compose.yml
Normal file
@@ -0,0 +1,9 @@
|
||||
version: "3.9"
|
||||
|
||||
services:
|
||||
hxki-web:
|
||||
build: .
|
||||
container_name: hxki-web
|
||||
restart: unless-stopped
|
||||
ports:
|
||||
- "3003:3003"
|
||||
Reference in New Issue
Block a user