我正在尝试通过docker compose interpreter和“后端”服务在PyCharm中使用Django服务器运行/调试配置。一切正常,但是当我重新启动服务器时,只有一个容器(“后端”)重新启动:
xxxxx_redis is up-to-date
xxxxx_frontend_1 is up-to-date
xxxxx_postgresql is up-to-date
xxxxx_celery_1 is up-to-date
Starting xxxxx_backend_1 ...
如何通过PyCharm重新启动某些链接服务(例如“芹菜”)? “后端”的定义如下:
backend:
build:
# build args
command: python manage.py runserver 0.0.0.0:8000 --settings=<settings.module>
user: root
volumes:
# volumes definition
links:
- postgresql
- redis
- frontend
- celery