typhon-project / typhondl

http://www.typhon-project.org
Eclipse Public License 2.0
1 stars 0 forks source link

[Feature] Add possibility to restrict resource usage when not using Swarm #74

Closed MarieSaphira closed 3 years ago

MarieSaphira commented 3 years ago

Is your feature request related to a problem? Please describe. Limiting container resources is only possible when using DockerSwarm or Kubernetes at the moment.

Describe the solution you'd like It should be possible to limit resources when "only" using Docker Compose e.g. with

mem_limit: 512m

Describe alternatives you've considered Adding resource restriction in the generated docker-compose.yaml

Additional context duringResetDB

MarieSaphira commented 3 years ago

Since Docker Compose version 1.27.0 it's possible to use the swarm syntax (docker-compose file version 3.x) with Docker Compose. For older versions it's possible to run

docker-compose --compatibility up

Docker Compose "translates" the v3 syntax into v2 syntax if possible.