Created
July 31, 2020 12:03
-
-
Save Demacr/583fd14ab9a8b68f206344a81c3141ac to your computer and use it in GitHub Desktop.
Docker-compose memory limit
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
service: | |
someservice: | |
deploy: | |
resources: | |
limits: | |
cpus: '0.001' | |
memory: 50M |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# --compatibitlity if set, Compose will attempt to convert deploy keys in v3 files to their non-Swarm equivalent | |
docker-compose --compatibility up -d |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment