With said Docker Container from: https://hub.docker.com/r/fionnb/picapport it sadly isn't possible to set JAVA memory options.
The Docker starts up picapport with running pa-start.sh
. So I copied that script from inside the Container and (very dirty!) adapted it to be able to set -XX:MaxDirectMemorySize=2048m -Xms256m -Xmx1024m
to one's own liking.
The diff to the original is added below.
For to make this work, create the docker-compose.yml
& pa-start.sh
inside the same folder and make pa-start.sh
executeable with chmod +x pa-start.sh
Adjust the docker-compose.yml
to your own setup and start up with docker-compose up -d
What this compose does is, it replaces the container's own pa-start.sh
which is located in /opt/picapport/
with the changed one as a volume ./pa-start.sh:/opt/picapport/pa-start.sh
making it possible to set PICAPPORT_PORT, PICAPPORT_LANG and JAVA_OPTS from within docker-compose.yml
without the need of creating an ENV file as stated on the docker hub's description.