Unable to create directory wp-content/uploads/. Is its parent directory writable by the server?
# assume your volume directory
volumes:
- ./api:/usr/src/app
# change it to
volumes:
- ./api:/usr/src/app:Z
# :Z - will add permissions only to the current container label
# now add permission to you path
sudo chmod a+rwx -R <project_dir>/