Turns out, this is fine, providing the people in the photo knew they were being photographed.
Here’s what to do:
1. upload photo to Wikimedia Commons. Select that you have the permission to share the photo (you took them).
2. You can choose how you wish to share the photo. Commons will default to ShareAlike, which is probably what you want to do.