我用 docker 部署 yearning

创建数据库
CREATE DATABASE yearning CHARACTER SET utf8mb4 COLLATE utf8mb4_bin;
grant all on yearning.* to ‘yearning‘@‘%‘ identified by ‘sMHcsff32wUv38‘;

启动

docker run -d   --name yearning   --restart always   -p 8000:8000   -e MYSQL_USER=yearning   -e MYSQL_ADDR=yearning.cezovefshkke.eu-west-1.rds.amazonaws.com:3306   -e MYSQL_PASSWORD=sMHcsff32wUv38   -e MYSQL_DB=yearning   -e TZ="Asia/Shanghai"   wangzan18/yearning:v2.2.1

默认密码:admin/Yearning_admin

相关推荐