docker compose 搭建chevereto v4图床
date
May 10, 2022
slug
newservice-picbed-chevereto-docker-composer
status
Published
summary
新服务 就是试试v4
tags
service
type
Post

Summary
- ‣
步骤
确保docker compose v2安装
# check version at https://github.com/docker/compose/releases
curl -sSL --fail "https://github.com/docker/compose/releases/download/v2.5.0/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
chmod +x /usr/local/bin/docker-compose
ln -s /usr/local/bin/docker-compose /usr/bin/docker-compose
mkdir -p /usr/lib/docker/cli-plugins
ln -s /usr/local/bin/docker-compose /usr/lib/docker/cli-plugins/docker-compose
docker-compose --version
# 没安装之前,这是不能用的
docker compose --version
安装
cd /data
git clone https://github.com/chevereto/v4-container-builder chevereto-v4
cd chevereto-v4
# 修改 http -> https
vim Makefile
# 修改域名和数据库密码
vim php.Dockerfile
# 修改persistent storage
vim projects/prod.yml
cd projects && mkdir assets storage && chown -R www-data:www-data .



启动
make down
make image
make image-build
make up-d
#
增加CloudFlare Caching
- *.nine.im/image/*

