Websoft9 / docker-library

Docker Compose examples of selfhosted FOSS based on official image, just run it.
https://www.websoft9.com
Other
31 stars 14 forks source link

correctly run official docker-compose.yml [onlyoffice] #544

Open qiaofeng1227 opened 6 months ago

qiaofeng1227 commented 6 months ago

run onlyoffice workspace

直接运行官方docker-compose.workspace.yml

logs

ERROR 1146 (42S02) at line 1: Table 'onlyoffice_mailserver.greylisting_whitelist' doesn't exist
+ MAIL_SERVER_HOSTNAME=
+ [[ 1 -eq 0 ]]
+ sleep 10
+ '[' ']'
+ '[' 70 -lt 120 ']'
+ interval=80
++ mysql --silent --skip-column-names -h onlyoffice-mysql-server --port=3306 -u mail_admin --password=Isadmin123 -D onlyoffice_mailserver -e 'SELECT Comment from greylisting_whitelist where Source='\''SenderIP:172.20.0.5'\'' limit 1;'
mysql: [Warning] Using a password on the command line interface can be insecure.
ERROR 1146 (42S02) at line 1: Table 'onlyoffice_mailserver.greylisting_whitelist' doesn't exist
+ MAIL_SERVER_HOSTNAME=
+ [[ 1 -eq 0 ]]
+ sleep 10
+ '[' ']'
+ '[' 80 -lt 120 ']'
+ interval=90
++ mysql --silent --skip-column-names -h onlyoffice-mysql-server --port=3306 -u mail_admin --password=Isadmin123 -D onlyoffice_mailserver -e 'SELECT Comment from greylisting_whitelist where Source='\''SenderIP:172.20.0.5'\'' limit 1;'
mysql: [Warning] Using a password on the command line interface can be insecure.
ERROR 1146 (42S02) at line 1: Table 'onlyoffice_mailserver.greylisting_whitelist' doesn't exist

所以需要删除邮件服务容器后保证docker-compose能正常运行(server和document server web页面都能正常访问,所有容器无错误日志),环境变量文件.env是否有必要添加额外的环境变量请酌情考虑。