FAQ
How do I control the file permissions generated by a Docker service?
In your docker-compose.override.yml file you can specify what user to run as:
So when you run docker-compose run --rm artisan it now runs as the www-data user.
How do I reset my environment in order to start from scratch?
This command will reset ALL databases, networks, volumes in Docker and recreates them in a default state.