Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docker-compose.yml: make it easy to restrict db resources
As we learned, postgres may behave differently depending on the available RAM. You can now test the database nearer to production by adding DB_MEMORY_LIMIT=1G DB_CPU_LIMIT=1 to your .env file. IntelliJ does not like the env variable interpolation, but it works. I used 128G as fallback, because normally while developing you don't want a slow DB. With the cpus it was not possible to limit to more cpu than the machine has. Thus, i limited to 8 cores which every developer machine has hopefully.
- Loading branch information