Licenses being removed with a docker compose down

NO.

You must use lease licenses (8-character, with continuous internet access for rechecking) instead of standard (6-character, with no internet necessary after activation).