Refactor Docker Compose configuration by removing the igny8_marketing service and updating the marketing dev server setup. Enhance Vite configuration to improve SPA routing for the marketing site, serving marketing.html for all non-static asset requests.

This commit is contained in:
IGNY8 VPS (Salman)
2025-11-14 11:18:40 +00:00
parent ae1cc8dcfb
commit 97546aa39b
2 changed files with 34 additions and 27 deletions

View File

@@ -14,7 +14,6 @@
# NOTE: Images must be built separately before using:
# cd /data/app/igny8/backend && docker build -t igny8-backend:latest -f Dockerfile .
# cd /data/app/igny8/frontend && docker build -t igny8-frontend-dev:latest -f Dockerfile.dev .
# cd /data/app/igny8/frontend && docker build -t igny8-marketing:latest -f Dockerfile.marketing .
# cd /data/app/igny8/frontend && docker build -t igny8-marketing-dev:latest -f Dockerfile.marketing.dev .
# =============================================================================
@@ -83,25 +82,9 @@ services:
- "com.docker.compose.project=igny8-app"
- "com.docker.compose.service=igny8_frontend"
igny8_marketing:
# NOTE: Use 'image:' not 'build:' to avoid creating parallel stacks
# Build images separately: docker build -t igny8-marketing:latest -f Dockerfile.marketing .
# NOTE: This can run in parallel with igny8_marketing_dev - they use different ports
# Production build accessible at http://localhost:8022 (direct) or via Caddy routing
image: igny8-marketing:latest
container_name: igny8_marketing
restart: always
ports:
- "0.0.0.0:8022:8020" # Marketing site port (internal: 8020 Caddy, external: 8022)
networks: [igny8_net]
labels:
- "com.docker.compose.project=igny8-app"
- "com.docker.compose.service=igny8_marketing"
igny8_marketing_dev:
# Development server for marketing site with HMR
# Build separately: docker build -t igny8-marketing-dev:latest -f Dockerfile.marketing.dev .
# NOTE: This runs in parallel with igny8_marketing - they use different ports (no conflict)
# Dev server accessible at http://localhost:8023 (direct) or via Caddy routing (when configured)
image: igny8-marketing-dev:latest
container_name: igny8_marketing_dev