测试文章二

代码高亮测试

services:
  openlist:
    image: 'openlistteam/openlist:latest'
    container_name: openlist
    volumes:
      - '/data:/opt/openlist/data'
      - './share:/opt/openlist/share'
    ports:
      - '5288:5244'
    environment:
      - PUID=0
      - PGID=0
      - UMASK=022
    restart: unless-stopped
services:
  openlist:
    image: 'openlistteam/openlist:latest'
    container_name: openlist
    volumes:
      - '/data:/opt/openlist/data'
      - './share:/opt/openlist/share'
    ports:
      - '5288:5244'
    environment:
      - PUID=0
      - PGID=0
      - UMASK=022
    restart: unless-stopped
services:
  yt-dlp-webui:
    image: marcobaobao/yt-dlp-webui
    ports:
      - 3035:3033
    volumes:
      - ./downloads:/downloads # replace <your dir> with a directory on your host system
      - ./config:/config    # directory where config.yml will be stored
    healthcheck:
      test: curl -f http://localhost:3033 || exit 1
    restart: unless-stopped
services:
  ezbookkeeping:
    image: mayswind/ezbookkeeping
    container_name: ezbookkeeping
    restart: unless-stopped
    ports:
      - 8082:8080
    volumes:
      - /etc/localtime:/etc/localtime:ro
      - ./storage:/ezbookkeeping/storage
      - ./log:/ezbookkeeping/log
    #  - ./ezbookkeeping.ini:/ezbookkeeping/conf/ezbookkeeping.ini
    environment:
      - EBK_DATABASE_TYPE=mysql
      - EBK_DATABASE_HOST=mysql:3306
      - EBK_DATABASE_NAME=ezbookkeeping
      - EBK_DATABASE_USER=ezbookkeeping
      - EBK_DATABASE_PASSWD=ezbookkeeping
      - EBK_LOG_MODE=file
      - EBK_SECURITY_SECRET_KEY=its_should_be_a_random_string
      - EBK_MCP_ENABLE_MCP=true
    # depends_on:
    #  mysql:
    #    condition: service_healthy

  mysql:  
    image: mysql:8.0 
    container_name: ezbookkeeping-mysql
    restart: unless-stopped
    volumes:  
        - ./data:/var/lib/mysql
    environment:  
        - MYSQL_DATABASE=ezbookkeeping  
        - MYSQL_USER=ezbookkeeping  
        - MYSQL_PASSWORD=ezbookkeeping  
        - MYSQL_ROOT_PASSWORD=ezbookkeeping
    healthcheck:  
        test: ["CMD", "mysqladmin", "ping", "-p ezbookkeeping"]  
        retries: 3  
        timeout: 5s
  1. 测试测试

    services:
      ezbookkeeping:
        image: mayswind/ezbookkeeping
        container_name: ezbookkeeping
        restart: unless-stopped
        ports:
          - 8082:8080
        volumes:
          - /etc/localtime:/etc/localtime:ro
          - ./storage:/ezbookkeeping/storage
          - ./log:/ezbookkeeping/log
        #  - ./ezbookkeeping.ini:/ezbookkeeping/conf/ezbookkeeping.ini
        environment:
          - EBK_DATABASE_TYPE=mysql
          - EBK_DATABASE_HOST=mysql:3306
          - EBK_DATABASE_NAME=ezbookkeeping
          - EBK_DATABASE_USER=ezbookkeeping
          - EBK_DATABASE_PASSWD=ezbookkeeping
          - EBK_LOG_MODE=file
          - EBK_SECURITY_SECRET_KEY=its_should_be_a_random_string
          - EBK_MCP_ENABLE_MCP=true
        # depends_on:
        #  mysql:
        #    condition: service_healthy
    
      mysql:  
        image: mysql:8.0 
        container_name: ezbookkeeping-mysql
        restart: unless-stopped
        volumes:  
            - ./data:/var/lib/mysql
        environment:  
            - MYSQL_DATABASE=ezbookkeeping  
            - MYSQL_USER=ezbookkeeping  
            - MYSQL_PASSWORD=ezbookkeeping  
            - MYSQL_ROOT_PASSWORD=ezbookkeeping
        healthcheck:  
            test: ["CMD", "mysqladmin", "ping", "-p ezbookkeeping"]  
            retries: 3  
            timeout: 5s
Flag Description
-i Disables the iperf (network performance) test
-g Disables the Geekbench (system performance) test
-f/-d Disables the fio (disk performance) test
-5 Runs a Geekbench 5 test and disables the Geekbench 6 test

原创文章,作者:supreme,如若转载,请注明出处:https://www.hxtu.com/28.html

(0)
上一篇 2025年8月24日 12:18
下一篇 2025年8月24日 12:18

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注