2021-11-10 16:22:32 +07:00
|
|
|
# Docker Container Resources
|
2021-11-10 16:06:55 +07:00
|
|
|
|
2021-11-10 16:22:32 +07:00
|
|
|
| App | cpus (min - max) | memory (min - max) |
|
|
|
|
| -------------------- | ---------------- | ------------------ |
|
2021-11-10 16:24:51 +07:00
|
|
|
| React + Nginx | .1 - .2 | 5m - 50m |
|
2021-11-10 16:22:32 +07:00
|
|
|
| React + Nextjs | .2 - .4 | 50m - 90m |
|
|
|
|
| Nestjs | .2 - .4 | 50m - 80m |
|
2021-11-10 16:30:07 +07:00
|
|
|
| Nestjs (High) | .4 - .8 | 150m - 500m |
|
|
|
|
| Nestjs (Adv) | .5 - .9 | 300m - 1500m |
|
2021-11-10 16:22:32 +07:00
|
|
|
| Spring Boot (Basic) | .2 - .5 | 250m - 500m |
|
|
|
|
| Spring Boot (Normal) | .3 - .6 | 800m - 1200m |
|
|
|
|
| Spring Boot (High) | .5 - .8 | 1000m - 3000m |
|
|
|
|
| Spring Boot (Adv) | .9 - 1 | 1500m - 4000m |
|
2021-11-10 16:24:51 +07:00
|
|
|
|
|
|
|
|
|
|
|
#### Run Container
|
|
|
|
```shell
|
|
|
|
docker run --cpus=".1" --memory="5m" -p 80:80 myreactapp:latest
|
|
|
|
```
|