841 B
841 B
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:
- A
Dockerfilewill build the Nuxt application into a production-ready Node.js server. docker-compose.ymlwill define two services:app: The Nuxt application built from theDockerfile.db: The official PostgreSQL image, with a persistent volume mounted to store the database data.
- Deployment consists of pulling the latest code, running
docker-compose up -d --buildon the Raspberry Pi.
- A
- Migrations: Production migrations will be applied by running
npx prisma migrate deployinside the runningappcontainer or as part of the container's startup command.