Dockerized app and database
Closed this issue · 1 comments
maxicapodacqua commented
Create a docker container for the app as well as a MongoDB instance to connect to.
The CBoard AI Builder will have its database while using CBoard API to access shared data between both apps to keep data isolated and help with future scalation efforts.
maxicapodacqua commented
Useful links:
- Example of nextjs with docker compose: https://github.com/vercel/next.js/blob/canary/examples/with-docker-compose/README.md
- Docs about env vars in NextJS (I would avoid NEXT_PUBLIC_ vars) https://nextjs.org/docs/pages/building-your-application/deploying#environment-variables
- Docker image improvements by creating a standalone version of the server: https://nextjs.org/docs/pages/api-reference/next-config-js/output