> For AI agents: the complete documentation index is available at https://www.tteam.icu/llms.txt, the full documentation bundle is available at https://www.tteam.icu/llms-full.txt.

# 自己写了个个人使用的图床

## 背景

我之前调研了市面上可免费自建的图床服务，发现都不太符合我的需求

此前使用的是自建的[easyimage](https://github.com/icret/EasyImages2.0)图床，但使用过程中遇到了一些痛点:

- 后台管理和图片存储的域名分离
- 不支持iPhone的HEIC图片格式
- 配置文件与图片混合存储，且需要高权限才能使用

## 实现

因此，我利用休息时间，使用Golang+React开发了一个全新的图床服务，解决了上述所有痛点

开源地址: [前端](https://github.com/buyfakett/easyimage-go-web)、[后端](https://github.com/buyfakett/easyimage-go)

把之前的配置和缓存目录替换后，配置单个文件直接启动，可以直接平滑迁移

## 快速部署

### Docker compose

```yaml
services:
    easyimage_go:
        image: buyfakett/easyimage_go
        container_name: easyimage_go
        network_mode: host
        restart: always
        volumes:
            - ./config/config.yaml:/app/config.yaml:ro
            - ./i:/app/i
        command: --config=/app/config.yaml
```

### 配置文件

```
server:
  port: 8080                    # 服务端口
  domain: http://localhost:8080 # 服务域名(用于拼接图片url)
  token: 123456                 # 鉴权token(用于鉴权)
image:
  uri: /i                       # 图片存储路径(相对路径)
  webp_quality: 100             # webp压缩质量(0-100)
```

## 项目截图

![](https://img.tteam.icu/i/2025/11/29/3c19a769.webp)

![](https://img.tteam.icu/i/2025/11/29/5d612700.webp)
