单台服务器用 docker compose 性能如何,能支撑一个小程序吗?

有三个容器,包含了 mysql, redis 和自已的代码,如果性能能接受的话,就不用买云数据库了,主要不想麻烦,服务器配置2G,2核, 本地跑差不多占用1G的内存

Docker compose 只是一个用来起 Docker 的工具,Docker 的话,性能影响还是很小的

是否足够用,还是取决于你对 MySQL 和 Redis 的需求

The general result is that Docker is nearly identical to Native performance and faster than KVM in every category