Hey all — wondering if anyone has a solid deployment workflow using Docker + Payload (v3) in a self-hosted setup like DigitalOcean?
Looking for best practices or working examples that cover:
• how to safely run migrations in production (prodMigrations or alternatives)
• how to handle schema updates without data loss
• seeding data into existing DBs
• rollback strategies for both code and database
• how to manage versioned deployments cleanly
• any Docker-specific gotchas with Payload in production
I’ve tried using prodMigrations, but on production startup I keep getting the message 'There are database changes that need to be applied, but it looks like you're running in a development environment.' — and migrations just don’t run. I’m clearly in prod mode (NODE_ENV=production), so not sure what it’s looking for.
Happy to share what I’ve got working so far — I’ve got a functional docker-compose, deploy flow, and CI/CD— but I’m sure it could use extra eyes, and I’m likely missing things others here have already solved.
Thanks in advance!