Build back and front

This commit is contained in:
dvirlabs 2025-12-23 21:06:57 +02:00
parent 8b341a9f3b
commit 3812f0990a
3 changed files with 2 additions and 74 deletions

View File

@ -13,4 +13,4 @@ COPY main.py .
EXPOSE 8000 EXPOSE 8000
# Run the application # Run the application
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8000"] CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8000"]

View File

@ -27,4 +27,4 @@ COPY nginx.conf /etc/nginx/conf.d/default.conf
# Expose port # Expose port
EXPOSE 80 EXPOSE 80
CMD ["nginx", "-g", "daemon off;"] CMD ["nginx", "-g", "daemon off;"]

View File

@ -1,72 +0,0 @@
# Basic configuration values for IP Calculator application
# Application metadata
app:
name: ip-calculator
version: "1.0.0"
description: "IP Subnet Calculator with React + Vite frontend and FastAPI backend"
# Backend configuration
backend:
port: 8000
host: "0.0.0.0"
apiUrl: "http://localhost:8000"
cors:
enabled: true
origins:
- "http://localhost:3000"
- "http://localhost:5173"
# Frontend configuration
frontend:
port: 3000
apiUrl: "http://localhost:8000"
# Development settings
development:
hotReload: true
debug: true
# Production settings
production:
debug: false
minify: true
# Docker configuration
docker:
backend:
image: "ip-calculator-backend"
tag: "latest"
frontend:
image: "ip-calculator-frontend"
tag: "latest"
# Kubernetes/Helm configuration (for helm chart)
kubernetes:
namespace: "default"
replicas:
backend: 1
frontend: 1
resources:
backend:
limits:
cpu: "500m"
memory: "512Mi"
requests:
cpu: "250m"
memory: "256Mi"
frontend:
limits:
cpu: "200m"
memory: "256Mi"
requests:
cpu: "100m"
memory: "128Mi"
# Ingress configuration
ingress:
enabled: false
host: "ip-calculator.example.com"
tls:
enabled: false
secretName: "ip-calculator-tls"