We have a Wappler project in a docker container deployed via Digitalocean droplet.
It runs well other than the docker logs occupying more and more disk space as time goes on. We want to limit the size of these logs using docker’s log-rotation feature.
We would like to accomplish this log roation for our wappler project, but we cannot find the files related to the docker container/its logging drivers as mentioned.
Well configuring the logging driver is more an advanced topic.
You can do it by directly editing the docker-compose.yml files generted by wappler and add your logging options there as:
The docker-compose.yml file is located in: .wappler/targets/_your_target_name_/docker-compose.yml
You can safely edit it and add the needed extra commands. If we edit it from the project options, we change only the chosen options, so your changes will still be available.
Make sure you redeploy after you make changes to the docker-compose.yml file
You can also add some other limits like memory and cpu. as described in:
So you don’t run out of memory - which will be fatal: