Skip to content
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

docker: fix mysql env #681

Merged
merged 2 commits into from
May 20, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions .env.sample
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,6 @@ MYSQL_PASSWORD=yourpass
# mysql服务设置
# mysql host默认请保持注释*
# MYSQL_HOST=mysql
# mysql服务密码设置
MYSQL_ROOT_PASSWORD=${MYSQL_PASSWORD}
#设置MYSQL_PASSWORD即可


#--->网站定制 sites.py
Expand Down
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ services:
container_name: mysql
restart: always
environment:
MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD:-yourpass}
MYSQL_ROOT_PASSWORD: ${MYSQL_PASSWORD:-yourpass}
MYSQL_DATABASE: sspanel
volumes:
- ./configs/mysqld/mysqld_charset.cnf:/etc/mysql/conf.d/mysqld_charset.cnf
Expand Down