Files
SYSTEM/docs/architecture/deployment-architecture.md
2025-09-01 01:52:06 +03:00

11 lines
841 B
Markdown

# 8. Deployment Architecture
* **Strategy:** The application will be deployed as a set of Docker containers orchestrated by `docker-compose`. This simplifies deployment on the target Raspberry Pi.
* **Process:**
1. A `Dockerfile` will build the Nuxt application into a production-ready Node.js server.
2. `docker-compose.yml` will define two services:
* `app`: The Nuxt application built from the `Dockerfile`.
* `db`: The official PostgreSQL image, with a persistent volume mounted to store the database data.
3. Deployment consists of pulling the latest code, running `docker-compose up -d --build` on the Raspberry Pi.
* **Migrations:** Production migrations will be applied by running `npx prisma migrate deploy` inside the running `app` container or as part of the container's startup command.