Featured image of post Docker部署chevereto图床开心版

Docker部署chevereto图床开心版

部署chevereto图床

效果图

部署教程

docker compose部署

version: '3.8'

services:
    chevereto:
    image: ghcr.io/chevereto/chevereto:4.0.9
    container_name: chevereto
    restart: unless-stopped
    ports:
        - "8090:80"
    environment:
        CHEVERETO_DB_HOST: db
        CHEVERETO_DB_PORT: 3306
        CHEVERETO_DB_NAME: chevreto
        CHEVERETO_DB_USER: chevreto
        CHEVERETO_DB_PASS: passwd
    depends_on:
        - db
    volumes:
        - /opt/chevereto:/var/www/html/
        - /opt/chevereto/asset:/var/www/html/images/_assets/
    
    db:
    image: mysql:8.1
    container_name: chevereto_db
    restart: unless-stopped
    environment:
        MYSQL_ROOT_PASSWORD: passwd
        MYSQL_DATABASE: chevreto
        MYSQL_USER: chevreto
        MYSQL_PASSWORD: passwd
    volumes:
        - /opt/chevereto/db:/var/lib/mysql

自行更改用户名 密码和数据库用户名 密码

然后运行

docker compose up -d

下载开心版文件

使用蓝奏网盘下载 Chevereto V4.0.7:

https://itxe.lanzout.com/itD5M0ozrzif

把压缩包放入/opt/chevereto文件夹内解压 赋予权限

chmod -R 077 /opt/chevereto

最后打开ip:8090即可

免责声明
⏱ 已运行: 加载中...