--compatibility flag is used as per https://stackoverflow.com/questions/42345235/how-to-specify-memory-cpu-limit-in-docker-compose-version-3#comment112608532_53057683 .immich-server and immich-machine-learning portions of the docker-compose.yml file: