按官方文档安装正常,但是发现seafile这个image启动不了,通过docker logs 1f4b712383d9看下log,发现
verifying password of user root … done
verifying password of user seafile …
Failed to connect to mysql server using user “seafile” and password “***”: Access denied for user ‘seafile’@‘172.18.0.4’ (using password: YES)
Traceback (most recent call last):
File “/scripts/start.py”, line 86, in
main()
File “/scripts/start.py”, line 56, in main
init_seafile_server()
File “/scripts/bootstrap.py”, line 140, in init_seafile_server
call(’{} auto -n seafile’.format(setup_script), env=env)
File “/scripts/utils/init.py”, line 69, in call
return subprocess.check_call(*a, **kw)
File “/usr/lib/python2.7/subprocess.py”, line 190, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command ‘/opt/seafile/seafile-server-7.0.5/setup-seafile-mysql.sh auto -n seafile’ returned non-zero exit status 255
用户seafile的密码是系统自动创建的吧?还是网络问题?我怎么排错?求教
这是docker-compose.yml文件:
version: ‘2.0’
services:
db:
image: mariadb:10.1
container_name: seafile-mysql
version: ‘2.0’
services:
db:
image: mariadb:10.1
container_name: seafile-mysql
environment:
- MYSQL_ROOT_PASSWORD=mima # Requested, set the root’s password of MySQL service.
- MYSQL_LOG_CONSOLE=true
volumes:
- /opt/seafile-mysql/db:/sea-mysql # Requested, specifies the path to MySQL data persistent store.
networks:
- seafile-net
memcached:
image: memcached:1.5.6
container_name: seafile-memcached
entrypoint: memcached -m 256
networks:
- seafile-net
seafile:
image: seafileltd/seafile-mc:latest
container_name: seafile
ports:
- “80:8000”
- “8082:8082”
- “12001:12001”
volumes:
- /opt/seafile-data:/seafile # Requested, specifies the path to Seafile data persistent store.
environment:
- DB_HOST=db
- DB_ROOT_PASSWD=mima # Requested, the value shuold be root’s password of MySQL service.
- SEAFILE_ADMIN_EMAIL=linzi
- SEAFILE_ADMIN_PASSWORD=mima# Specifies Seafile admin password, default is ‘asecret’.
- SEAFILE_SERVER_LETSENCRYPT=false # Whether to use https or not.
- SEAFILE_SERVER_HOSTNAME=pan.ld.com # Specifies your host name if https is enabled.
depends_on: - db
- memcached
networks: - seafile-net
networks:
seafile-net: