In my docker container I have some logging files.
docker-compose-dev.yml
entrypoint.sh
web/
celery_logs/
log1.log
log2.log
logn.log
These logs add up while tasks are running.
Is there a way or command to clean up the contents of all log files each time I run the container like so?
docker-compose -f docker-compose-dev.yml up -d
entrypoint.sh
#!/bin/sh
echo "Waiting for postgres..."
while ! nc -z web-db 5432; do
sleep 0.1
done
echo "PostgreSQL started"
python manage.py run -h 0.0.0.0