xxxxxxxxxx
There exists the user property that can be set in the compose file. This is documented in docker-compose file reference.
services:
datapower:
build: .
user: root
ports:
- "9090:9090"
depends_on:
- db