Hi Keith,
There are post provisioning scripts you can assign to a storage service, but I have not used them. If a program provisions storage via APIs, it should be able to get the volume information and invoke ONTAP APIs to set compression.
Regards,
- Rick -