ariaramin/flutter-web-pocketbase-deploy ? reverse-engineered prompt
Reverse engineered prompt
Build me a production ready deployment template for a Flutter Web app with PocketBase behind Nginx.
I want one setup that serves the Flutter single page app on app.my domain, proxies PocketBase on the main domain and api subdomain, and keeps the database and certificate data in persistent Docker volumes. Please include Docker Compose for production and a local dev override that runs PocketBase on localhost without exposing it publicly.
Make it easy to configure with a .env file, include a way to bootstrap and renew Let’s Encrypt certificates, and make sure Nginx handles SPA routing, compression, caching, and basic security headers. The Flutter build should be copied into a web build folder that the proxy serves, and the PocketBase side should support migrations, hooks, and public files. Use current best practices for a self hosted setup, and if you need anything unclear, look up the latest docs online.
Are you gonna build this?
make sure you review the code using coderabbit