简体   繁体   中英

Docker and Rancher - Run multiple workers

I need to run 3 commands to run my application:

$ celery -A name worker
$ daphne name.asgi:channel_layer -b 0.0.0.0 -p 8000
$ python manage.py runworker

I need to do this for the same image, I do not know if it is viable to create a container for each command. What should I do?

Thanks for your help.

我意识到它们都是服务,每个容器必须有一个容器。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM