playframework icon indicating copy to clipboard operation
playframework copied to clipboard

Better document how to config Play for containerized env

Open octonato opened this issue 5 years ago • 2 comments

We should have better documentation for the PID file problem in Docker. The documentation is not so clear about it.

Relates to https://github.com/playframework/playframework/issues/9487

octonato avatar Jul 29 '19 15:07 octonato

It looks like the sbt-native-packager already deals with the PID issue mentioned

  // Since play uses separate pidfile we have to provide it with a proper path
  // name of the pid file must be play.pid
  s"-Dpidfile.path=/var/run/${packageName.value}/play.pid",

https://www.scala-sbt.org/sbt-native-packager/recipes/play.html#application-configuration

wsargent avatar Dec 08 '19 01:12 wsargent

Also https://medium.com/jeroen-rosenberg/lightweight-docker-containers-for-scala-apps-11b99cf1a666

wsargent avatar Dec 09 '19 04:12 wsargent