Reputation: 3089
I have a small question regarding docker-compose file
I am trying to run a command using a different user than root:
command: celery -b 'redis://' -A proj worker --loglevel=info
This will cause the celery workers to run under root
How can I select another user for the specific service?
cheers
Upvotes: 3
Views: 1631
Reputation: 22562
You can add
user: nobody
to run your command as nobody. Swap it out as needed
Upvotes: 5