PamGram/docker-compose.gen.yml
2023-02-11 19:30:24 +08:00

38 lines
717 B
YAML

version: '3.1'
services:
redis:
image: redis:7-alpine
restart: always
volumes:
- ./redis_data:/data
logging:
driver: none
mysql:
image: 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: rtpaimon/tgpaimonbot:v3
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