type
status
slug
summary
tags
category
icon
password
new update day
Property
Oct 22, 2023 01:31 PM
created days
Last edited time
Oct 22, 2023 01:31 PM

使用 Docker compose 启动一个 CHEVERETO 图床

1. 基础 web 服务

1. 创建一个网络

2. 创建一个 docker-compose.yaml 文件

3. nginx 配置模板文件

在在对应目录 ./nginx/conf 下面 新建 nginx.conf 文件

4. 创建虚拟服务器配置文件

在对应目录 ./nginx/conf.d 下面 新建 new_server.conf 文件

2. 添加 ini 文件修改最大上传文件大小

1. 新建 upload.ini 文件

2. 将 upload.ini 挂载至容器内部

3. 添加 apache 模块文件获取用户真实IP

1. 在宿主机上创建相应文件

  • remoteip.load
  • remoteip.conf

2. 挂载至容器内部

4. 启动测试

1. 使用 docker-compose 命令启动

一些常用的Sql语句免 sudo 使用 docker 命令