Use multiple services within one container (Tomcat, Filebeat)

docker moto is “one service is one container”. So Filebeat should be running in a dedicated container (in the kubernetes world, we talk about “sidecar”).
Then all you need is a shared volume between the 2 containers so your java apps can write its log there and Filebeat will consume the file from there.