侧边栏壁纸
博主头像
Leuの小站 博主等级

如果呢

  • 累计撰写 23 篇文章
  • 累计创建 6 个标签
  • 累计收到 3 条评论

目 录CONTENT

文章目录

Docker部署chevereto图床开心版

Leu
Leu
2025-04-09 / 0 评论 / 5 点赞 / 51 阅读 / 0 字

效果图

部署教程

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即可

5

评论区