1
Fork 0

Override commafeed entrypoint to limit ram

This commit is contained in:
prescientmoon 2024-02-25 06:59:08 +01:00
parent 9b8b342619
commit c13e628cd7
Signed by: prescientmoon
SSH key fingerprint: SHA256:UUF9JT2s8Xfyv76b8ZuVL7XrmimH4o49p4b+iexbVH4

View file

@ -17,7 +17,10 @@ in
ports = [ "${toString port}:8082" ]; # server:docker
volumes = [ "${dataDir}:/commafeed/data" ]; # server:docker
extraOptions = [ "--memory=128m" ]; # the JVM is way too hungry
# the JVM is way too hungry
entrypoint = builtins.toJSON
[ "java" "-Xmx64m" "-jar" "commafeed.jar" "server" "config.yml" ];
# https://github.com/Athou/commafeed/blob/master/commafeed-server/config.yml.example
environment = {