Keep Backend and Frontend Separate | Generated by AI

Home 2026.04

Now I have a clear picture. Here’s my take:


Keep them separate. Here’s why:

They’re fundamentally different things:

Current relationship:

Why combining would be bad:

What you should do instead:

  1. One docker-compose.yml at a higher level (or in live-server) that orchestrates both:
    • live-server already has nginx config that could serve the Vue static build
    • Just add a build step: build live-mobile-web → output to live-server/public/ → nginx serves it all
  2. Or keep current repos, deploy separately:
    • live-server → Docker: PHP-FPM + nginx + MySQL + Redis (already set up)
    • live-mobile-web → build static → copy to nginx’s static dir (or serve from CDN)

The simplest path: extend live-server’s Docker setup to build and include the frontend — add a stage in the Dockerfile or a frontend service in docker-compose that builds the Vue app and shares the output via a volume. No need to merge repos.

Want me to set that up?


Back Donate