Last active
November 12, 2023 13:33
-
-
Save vicenterusso/ae6d6c903b790e5dae91c339c1ce2ba8 to your computer and use it in GitHub Desktop.
Docker Compose with fix Fedora 35/36/37 MySQL container - Leak Memory - High Usage - Error code 137
This file contains hidden or 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
version: '3' | |
services: | |
mysqldb: | |
image: mysql:5.7.22 | |
container_name: mysql_container_name | |
restart: always | |
ulimits: | |
nproc: 65535 | |
nofile: | |
soft: 20000 | |
hard: 40000 | |
volumes: | |
- "./data:/var/lib/mysql" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks
This is also in compose-file documentation but is not really mentioned as a problem fix.
Also, I want to add that this fix is not specifically Fedora related, but rather any system with bad/unlimited default ulimits, since the container just inherits them.