diff --git a/.env.development b/.env.development deleted file mode 100644 index 2d14e55..0000000 --- a/.env.development +++ /dev/null @@ -1,20 +0,0 @@ -# Development Environment Variables -# This file is for local development only - NOT for production k8s deployment -# In k8s, these values come from ConfigMaps and Secrets - -# Frontend Vite Configuration (build-time only) -VITE_AUTH0_DOMAIN=motovaultpro.us.auth0.com -VITE_AUTH0_CLIENT_ID=yspR8zdnSxmV8wFIghHynQ08iXAPoQJ3 -VITE_AUTH0_AUDIENCE=https://api.motovaultpro.com -VITE_API_BASE_URL=/api - -# Docker Compose Development Configuration -# These variables are used by docker-compose for container build args only -AUTH0_DOMAIN=motovaultpro.us.auth0.com -AUTH0_CLIENT_ID=yspR8zdnSxmV8wFIghHynQ08iXAPoQJ3 -AUTH0_AUDIENCE=https://api.motovaultpro.com - -# NOTE: Backend services no longer use this file -# Backend configuration comes from: -# - /app/config/production.yml (non-sensitive config) -# - /run/secrets/ (sensitive secrets) \ No newline at end of file diff --git a/docker-compose.yml b/docker-compose.yml index 03bccdd..c174ec9 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -17,8 +17,9 @@ services: - ./certs:/certs:ro - traefik_data:/data networks: - - frontend - - backend + frontend: + ipv4_address: 10.96.1.50 + backend: healthcheck: test: ["CMD", "traefik", "healthcheck"] interval: 30s @@ -180,11 +181,14 @@ services: timeout: 5s retries: 5 -# Network Definition - Simplified +# Network Definition networks: frontend: driver: bridge internal: false # Only for Traefik public access + ipam: + config: + - subnet: 10.96.1.0/24 labels: - "com.motovaultpro.network=frontend" - "com.motovaultpro.purpose=public-traffic-only" @@ -192,6 +196,9 @@ networks: backend: driver: bridge internal: false # Needs external access for Auth0 JWT validation + ipam: + config: + - subnet: 10.96.20.0/24 labels: - "com.motovaultpro.network=backend" - "com.motovaultpro.purpose=api-services" @@ -199,6 +206,9 @@ networks: database: driver: bridge internal: true # Data isolation + ipam: + config: + - subnet: 10.96.64.0/24 labels: - "com.motovaultpro.network=database" - "com.motovaultpro.purpose=data-layer"