Docker启动示例中心

我们可以通过一个docker-compose配置文件快速的启动一个带有示例中心的baskreport运行环境,docker-compose.yml配置文件如下:

version: '3.8'
services:
  web:
    image: basksoft/baskreport-sample-web:latest
    restart: always 
    container_name: baskreport-sample-web
    ports:
      - "8090:8080"
    environment:
      TZ: Asia/Shanghai
    depends_on:
      - mysql
  mysql:
    image: basksoft/baskreport-sample-db:latest
    restart: always 
    container_name: baskreport-sample-db
    ports: 
      - "3307:3306"  
    environment:
      MYSQL_ROOT_PASSWORD: helpdesk 
      MYSQL_ROOT_HOST: '%' 
      TZ: Asia/Shanghai

之后docker-compose.yml所在文件夹下执行命令:

docker-compose -p baskreport-sample up -d

默认登录页面:http://localhost:8090/baskreport/login

默认的登录用户名和密码为: admin/password

如果在报表设计时要连接示例数据库,可以选择内置的自定义数据源,设置值为"SampleCenterDatasource": image-docker-sample

results matching ""

    No results matching ""