Skip to content

关于你得docker版得问题和解决方案 #60

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
zhenghongyang666 opened this issue Dec 13, 2024 · 0 comments
Open

关于你得docker版得问题和解决方案 #60

zhenghongyang666 opened this issue Dec 13, 2024 · 0 comments

Comments

@zhenghongyang666
Copy link

1.在进行build的过程中报错提示没有gunicorn 以及后续起服务的过程中提示xadmin错误
需要在Dockerfile中添加:
&& pip install gunicorn==19.9.0
&& pip uninstall xadmin
&& pip install xadmin==0.6.1 \

2.在docker环境中部署得时候,
运行docker-compose exec kele_imooc /usr/local/bin/python manage.py makemigrations报错:
根据错误提示是找不到host:mysql
根据查询发现在docker-compose.yml文件中得mysql的host名是:kele_mysql
而在settings.py的配置中database的host是:mysql
所有修改settings.py的配置中database的host为:kele_mysql 解决

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant