mirror of
https://github.com/PaiGramTeam/PaiGram.git
synced 2024-11-22 15:36:44 +00:00
xtaodada
bb42787fbd
Docker 从 v3 升级步骤: docker-compose down 修改 .env 适配 v4 配置 修改 docker-compose.yml 将 v3 改为 v4 docker-compose up -d
38 lines
747 B
YAML
38 lines
747 B
YAML
version: "3.1"
|
|
|
|
services:
|
|
redis:
|
|
image: docker.io/redis:7-alpine
|
|
restart: always
|
|
volumes:
|
|
- ./redis_data:/data
|
|
logging:
|
|
driver: none
|
|
|
|
mysql:
|
|
image: docker.io/ubuntu/mysql:8.0-22.04_beta
|
|
restart: always
|
|
volumes:
|
|
- ./db_data:/var/lib/mysql
|
|
environment:
|
|
- MYSQL_ROOT_PASSWORD=root
|
|
- MYSQL_USER=root
|
|
- MYSQL_DATABASE=paimon
|
|
logging:
|
|
driver: none
|
|
|
|
paimon:
|
|
image: docker.io/rtpaimon/tgpaimonbot:v4
|
|
restart: always
|
|
environment:
|
|
- WAIT_HOSTS=mysql:3306, redis:6379
|
|
depends_on:
|
|
- redis
|
|
- mysql
|
|
volumes:
|
|
- ./.env:/app/.env
|
|
- ./cache:/app/cache
|
|
- ./data:/app/data
|
|
- ./logs:/app/logs
|
|
- ./report:/app/report
|