Merge pull request 'chore: remove deprecated environment and Docker configuration files' (#13) from ci/cd into develop
All checks were successful
Deploy to Testing Server / Deploy to Testing Environment (push) Successful in 44s

Reviewed-on: http://192.168.0.16:3000/lborv/low-code-engine/pulls/13
This commit is contained in:
2025-10-14 12:08:03 +00:00
5 changed files with 3 additions and 205 deletions

View File

@ -1,15 +0,0 @@
# Docker Environment Configuration
NODE_ENV=development
# Application Configuration
APP_PORT=3000
# Database Configuration
DB_HOST=mariadb
DB_PORT=3306
DB_USERNAME=app_user
DB_PASSWORD=app_password
DB_DATABASE=low_code_engine
DB_ROOT_PASSWORD=rootpassword
DB_PORT=3309

View File

@ -5,6 +5,9 @@ DB_USERNAME=root
DB_PASSWORD=your_password_here
DB_DATABASE=low_code_engine
REDIS_HOST=localhost
REDIS_PORT=6379
# Application Configuration
NODE_ENV=development
PORT=3054

View File

@ -1,64 +0,0 @@
# Environment Variables for Testing Deployments
# Copy this file to .env in your deployment directory
# ================================
# APPLICATION SETTINGS
# ================================
NODE_ENV=testing
APP_PORT=3123 # Will be dynamically set to 3000 + PR_NUMBER
# ================================
# DATABASE CONFIGURATION
# ================================
DB_HOST=mariadb
DB_PORT=3306
DB_DATABASE=low_code_engine_pr_123 # Will be dynamically set
DB_USERNAME=app_user
DB_PASSWORD=your_strong_password_here
DB_ROOT_PASSWORD=your_strong_root_password_here
# ================================
# REDIS CONFIGURATION
# ================================
REDIS_HOST=redis
REDIS_PORT=6379
# ================================
# API TOKENS (if needed)
# ================================
# API_TOKEN_SECRET=your_api_token_secret
# ADMIN_TOKEN=your_admin_token
# ================================
# EXTERNAL SERVICES (if any)
# ================================
# EXTERNAL_API_URL=https://api.example.com
# EXTERNAL_API_KEY=your_external_api_key
# ================================
# LOGGING & MONITORING
# ================================
LOG_LEVEL=debug
# SENTRY_DSN=https://your-sentry-dsn@sentry.io/project-id
# ================================
# PERFORMANCE SETTINGS
# ================================
# MAX_CONNECTIONS=100
# TIMEOUT=30000
# ================================
# FEATURE FLAGS (if any)
# ================================
# ENABLE_FEATURE_X=true
# ENABLE_DEBUG_MODE=true
# ================================
# NOTES FOR DEPLOYMENT
# ================================
# - This file is automatically generated by GitHub Actions
# - PR_NUMBER will be substituted with actual PR number
# - Ports will be calculated as BASE_PORT + PR_NUMBER
# - Database name will include PR number for isolation
# - Do not commit this file with real secrets!

View File

@ -1,64 +0,0 @@
# Multi-stage build for production optimization
FROM node:18-alpine AS development
# Set working directory
WORKDIR /usr/src/app
# Copy package files
COPY package*.json yarn.lock ./
# Install dependencies
RUN yarn install --frozen-lockfile
# Copy source code
COPY . .
# Expose port
EXPOSE 3000
# Development command
CMD ["yarn", "start:dev"]
# Production build stage
FROM node:18-alpine AS build
WORKDIR /usr/src/app
# Copy package files
COPY package*.json yarn.lock ./
# Install dependencies
RUN yarn install --frozen-lockfile
# Copy source code
COPY . .
# Build the application
RUN yarn build
# Production stage
FROM node:18-alpine AS production
WORKDIR /usr/src/app
# Copy package files
COPY package*.json yarn.lock ./
# Install only production dependencies
RUN yarn install --frozen-lockfile --production && yarn cache clean
# Copy built application
COPY --from=build /usr/src/app/dist ./dist
# Create non-root user
RUN addgroup -g 1001 -S nodejs
RUN adduser -S nestjs -u 1001
# Change ownership of the app directory
USER nestjs
# Expose port
EXPOSE 3000
# Production command
CMD ["node", "dist/main"]

View File

@ -1,62 +0,0 @@
version: "3.8"
services:
# MariaDB Database
mariadb:
image: mariadb:10.11
container_name: low-code-engine-mariadb
restart: unless-stopped
environment:
MYSQL_ROOT_PASSWORD: ${DB_ROOT_PASSWORD:-rootpassword}
MYSQL_DATABASE: ${DB_DATABASE:-low_code_engine}
MYSQL_USER: ${DB_USERNAME:-app_user}
MYSQL_PASSWORD: ${DB_PASSWORD:-app_password}
ports:
- "${DB_PORT:-3306}:3306"
volumes:
- mariadb_data:/var/lib/mysql
- ./docker/mariadb/init:/docker-entrypoint-initdb.d
networks:
- app-network
healthcheck:
test:
[
"CMD",
"mysqladmin",
"ping",
"-h",
"localhost",
"-u",
"root",
"-p${DB_ROOT_PASSWORD:-rootpassword}",
]
timeout: 5s
retries: 10
interval: 10s
# Redis Cache
redis:
image: redis:7-alpine
container_name: low-code-engine-redis
restart: unless-stopped
ports:
- "${REDIS_PORT:-6379}:6379"
volumes:
- redis_data:/data
networks:
- app-network
healthcheck:
test: ["CMD", "redis-cli", "ping"]
timeout: 5s
retries: 10
interval: 10s
volumes:
mariadb_data:
driver: local
redis_data:
driver: local
networks:
app-network:
driver: bridge