For podman, you can use PODMAN_USERNS=keep-id
for keeping user & group id.
You can view 2 example of configurations :
- Minimal configuration : ../docker-compose/simple/docker-compose.yml
- Advance configuration : ../docker-compose/advance/docker-compose.yml