1.部署说明
ferry工单系统部署参考官方文档,采用docker-compose的方式。
2.github地址
https://github.com/lanyulei/ferry?tab=readme-ov-file#readme
3.部署步骤
注:mysql、redis的镜像可以从docker hub上下载,地址:https://hub.docker.com/
3.1 部署mysql(5.7.29),此处只提供docker-compose.yaml,对应映射的配置文件暂不提供
version: '3.9' services: mysql: image: 192.168.1.30:8090/public/mysql:5.7.29 restart: always deploy: resources: limits: memory: '3G' reservations: memory: '2G' container_name: mysql environment: - TZ=Asia/Shanghai - MYSQL_ROOT_PASSWORD=123456 volumes: - /etc/localtime:/etc/localtime:ro - /data/aibox-common/mysql/config/my.cnf:/etc/mysql/my.cnf - /data/aibox-common/mysql/datadir:/var/lib/mysql ports: - 3306:3306 network_mode: "host"
3.2 部署redis(6.0.12),此处只提供docker-compose.yaml,对应映射的配置文件暂不提供
version: '3.9' services: redis: image: 192.168.1.30:8090/public/redis:6.0 restart: always deploy: resources: limits: memory: '3G' reservations: memory: '2G' container_name: redis volumes: - /etc/localtime:/etc/localtime:ro - /data/aibox-common/redis/conf/redis.conf:/usr/local/etc/redis/redis.conf - /data/aibox-common/redis/data:/data ports: - 6379:6379 command: redis-server /usr/local/etc/redis/redis.conf network_mode: "host"
3.3 部署ferry(下载的官方镜像1.0.7版本)
(1)获取ferry配置文件
#下载ferry包 https://github.com/lanyulei/ferry/archive/refs/heads/master.zip unzip ferry-master.zip
mv ferry-master ferry
#放到指定目录,可按照自己业务目录修改,我的目录是/data/aibox-common
(2)修改配置文件中连接mysql和redis的信息(改为自己指定的mysql和redis)
database: dbtype: mysql host: 172.16.4.68 name: ferry password: 123456 port: 3306 username: root redis: url: redis://172.16.4.68:6379
(3)创建数据初始化文件(第一次启动的时候需要在ferry/config/目录下创建needinit文件,启动完之后就可以删除了,防止重启服务时,重复初始化数据操作)
cd /data/aibox-common/ferry
touch config/needinit
(4)在mysql中创建ferry数据库
#登陆mysql容器
docker exec -it mysql bash
#连接mysql mysql -uroot -p123456
#创建数据库 create database ferry charset 'utf8mb4';
(5)启动ferry容器,docker-compose.yaml,启动命令docker-compose up -d
version: '3' services: ferry: image: lanyulei/ferry:1.0.7 container_name: ferry restart: always ports: - "8002:8002" volumes: - '/etc/localtime:/etc/localtime:ro' - '/data/aibox-common/ferry/config:/opt/workflow/ferry/config'
4.登陆平台,部署完成
http://172.16.4.68:8002/ admin/123456
5.使用文档
https://www.fdevops.com/docs/ferry-tutorial-document/introduction
标签:redis,etc,mysql,工单,ferry,docker,data From: https://www.cnblogs.com/Leonardo-li/p/18151464