Is it possible to limit docker container storage ?

i have deployed containers through my docker-compose file now i want to limit container storage to 20GB is it possible to limit storage ? as suggested by google i have added storage-opt in my docker-compose file but it doesn’t limit the container storage to 20 GB. kindly guide me if someone know about this