We deploy new releases in a new container with docker-compose --scale (out -> test -> in).
Then it creates a new container with a number in the name, like app_api_13 and next deploy scale out to app_api_14, and delete old app_api_13 at scale in ..... the log file follow the new containers name after each deploy, then we have lot of log files:
app_api_10.log app_api_11.log app_api_12.log app_api_13.log app_api_14.log app_api_9.log
when just last log app_api_14.log is the container running.
Is there are way to avoid number in log and maintain just one log, avoid number?
We deploy new releases in a new container with
docker-compose --scale(out -> test -> in).Then it creates a new container with a number in the name, like
app_api_13and next deploy scale out toapp_api_14, and delete oldapp_api_13at scale in ..... the log file follow the new containers name after each deploy, then we have lot of log files:when just last log
app_api_14.logis the container running.Is there are way to avoid number in log and maintain just one log, avoid number?