Play change RUNNING_PID file path

I am trying to store the RUNNING_PID file at /var/run instead of root directory.
Tried all the options suggested at:
Another SO question about the subject

and the solution play suggest in their documnetation: Play additional configuration

  • dumb terminal in non-interactive docker
  • How to access applications running in a docker containers inside docker?
  • Running Chromium inside Docker - Gtk: cannot open display: :0
  • How to list docker images in insecure-registry
  • Deploying a cluster (i.e. MongoDb / ElasticSearch) with Docker and linking to Java Application
  • How do I configure boot2docker to start my containers on boot?
  • Yet when I start my app the RUNNING_PID file is created in root directory and the /var/run/play.pid remains empty

  • How can I run elasticsearch on a docker container using supervisor?
  • access docker VM in private network (docker-machine)
  • Problems connecting pycharm to remote interpreter via docker
  • How to setup database.yml to connect to Postgres Docker container?
  • What's the difference between a stack file and a Compose file?
  • Why doesn't the container start?
  • One Solution collect form web for “Play change RUNNING_PID file path”

    Put

    play.server.pidfile.path=/var/run/RUNNING_PID
    

    in your application.conf

    Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.