Homepage Redesign
This commit is contained in:
@@ -90,14 +90,12 @@ services:
|
||||
# Service references
|
||||
DATABASE_HOST: mvp-postgres
|
||||
REDIS_HOST: mvp-redis
|
||||
PLATFORM_VEHICLES_API_URL: http://mvp-platform:8000
|
||||
volumes:
|
||||
# Configuration files (K8s ConfigMap equivalent)
|
||||
- ./config/app/production.yml:/app/config/production.yml:ro
|
||||
- ./config/shared/production.yml:/app/config/shared.yml:ro
|
||||
# Secrets (K8s Secrets equivalent)
|
||||
- ./secrets/app/postgres-password.txt:/run/secrets/postgres-password:ro
|
||||
- ./secrets/app/platform-vehicles-api-key.txt:/run/secrets/platform-vehicles-api-key:ro
|
||||
- ./secrets/app/auth0-client-secret.txt:/run/secrets/auth0-client-secret:ro
|
||||
- ./secrets/app/google-maps-api-key.txt:/run/secrets/google-maps-api-key:ro
|
||||
# Filesystem storage for documents
|
||||
@@ -108,7 +106,6 @@ services:
|
||||
depends_on:
|
||||
- mvp-postgres
|
||||
- mvp-redis
|
||||
- mvp-platform
|
||||
healthcheck:
|
||||
test:
|
||||
- CMD-SHELL
|
||||
@@ -180,52 +177,6 @@ services:
|
||||
timeout: 5s
|
||||
retries: 5
|
||||
|
||||
# Platform Services - Vehicles API
|
||||
mvp-platform:
|
||||
build:
|
||||
context: ./mvp-platform-services/vehicles
|
||||
dockerfile: docker/Dockerfile.api
|
||||
container_name: mvp-platform
|
||||
restart: unless-stopped
|
||||
environment:
|
||||
# Core configuration loaded from files
|
||||
NODE_ENV: production
|
||||
CONFIG_PATH: /app/config/production.yml
|
||||
SECRETS_DIR: /run/secrets
|
||||
SERVICE_NAME: mvp-platform
|
||||
# Service references (using shared infrastructure)
|
||||
DATABASE_HOST: mvp-postgres
|
||||
REDIS_HOST: mvp-redis
|
||||
volumes:
|
||||
# Configuration files (K8s ConfigMap equivalent)
|
||||
- ./config/platform/production.yml:/app/config/production.yml:ro
|
||||
- ./config/shared/production.yml:/app/config/shared.yml:ro
|
||||
# Secrets (K8s Secrets equivalent) - using shared postgres password
|
||||
- ./secrets/app/postgres-password.txt:/run/secrets/postgres-password:ro
|
||||
networks:
|
||||
- backend
|
||||
- database
|
||||
depends_on:
|
||||
- mvp-postgres
|
||||
- mvp-redis
|
||||
healthcheck:
|
||||
test: ["CMD", "wget", "--quiet", "--tries=1", "--spider", "http://localhost:8000/health"]
|
||||
interval: 30s
|
||||
timeout: 10s
|
||||
retries: 3
|
||||
start_period: 30s
|
||||
labels:
|
||||
- "traefik.enable=true"
|
||||
- "traefik.docker.network=motovaultpro_backend"
|
||||
- "traefik.http.routers.mvp-platform.rule=(Host(`motovaultpro.com`) || Host(`www.motovaultpro.com`)) && PathPrefix(`/platform`)"
|
||||
- "traefik.http.routers.mvp-platform.entrypoints=websecure"
|
||||
- "traefik.http.routers.mvp-platform.tls=true"
|
||||
- "traefik.http.routers.mvp-platform.priority=25"
|
||||
- "traefik.http.services.mvp-platform.loadbalancer.server.port=8000"
|
||||
- "traefik.http.services.mvp-platform.loadbalancer.healthcheck.path=/health"
|
||||
- "traefik.http.services.mvp-platform.loadbalancer.healthcheck.interval=30s"
|
||||
- "traefik.http.services.mvp-platform.loadbalancer.passhostheader=true"
|
||||
|
||||
# Network Definition - Simplified
|
||||
networks:
|
||||
frontend:
|
||||
|
||||
Reference in New Issue
Block a user