Host Log Files are not reflecting in Docker Container

Hi All,

I have mounted the spring boot logs directory with Docker Container. When the application writing the logs into the host files, then the Docker container is not reflecting the host file data. The container contains the older log file data when the container has started.

Docker file:

version: ‘3.2’
services:
logstash:
build:
context: logstash/
args:
ELK_VERSION: $ELK_VERSION
volumes:
- /Users/springapp/logs:/dev/logs
ports:
- “5000:5000/tcp”
- “5000:5000/udp”
- “9600:9600”
environment:
LS_JAVA_OPTS: “-Xmx256m -Xms256m”