I have to use a memory limit of 500MB and CPU set to 0.6 for a service and I also need to use version 3 in the docker-compose file.
I try:
$ docker-compose docker_compose.yml --compatibility up
and I get:
WARNING: The following deploy sub-keys are not supported in compatibility mode and have been ignored: resources.reservations.cpus
version: '3.3'
services:
web:
image: myimage:1.2.3
volumes:
- 'delle:/home/rh'
deploy:
resources:
limits:
memory: 500M
reservations:
cpus: '0.6'
networks:
- mynetwork
- internal
networks:
mynetwork:
external: true
internal:
volumes:
delle:
Can somebody help? Swarm only?