resources:
limits:
memory: 1G
при запуске пишет вот это:
WARNING: Some services (some-service) use the 'deploy' key, which will be ignored. Compose does not support 'deploy' configuration - use `docker stack deploy` to deploy to a swarm.
Как тогда это сделать? Чтобы именно через compose запускать
The options described here are specific to the deploy key and swarm mode. If you want to set resource constraints on non swarm deployments, use Compose file format version 2 CPU, memory, and other resource options.
Обсуждают сегодня