ytdlbot/docker-compose.yml

50 lines
1.1 KiB
YAML
Raw Permalink Normal View History

2021-08-29 10:19:49 +08:00
services:
redis:
2022-10-26 20:17:33 +08:00
image: redis:7-alpine
restart: unless-stopped
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 10s
timeout: 5s
retries: 3
2021-08-29 10:19:49 +08:00
logging:
options:
max-size: "10m"
max-file: "3"
2021-08-29 10:19:49 +08:00
2021-12-29 16:57:06 +08:00
mysql:
2025-01-29 01:31:28 +08:00
image: ubuntu/mysql:8.0-22.04_beta
restart: always
2021-12-29 16:57:06 +08:00
volumes:
- ./db_data:/var/lib/mysql
environment:
2025-01-29 02:18:13 +08:00
MYSQL_ROOT_PASSWORD: "root"
healthcheck:
test: ["CMD", "mysqladmin", "ping", "-h", "localhost"]
interval: 10s
timeout: 5s
retries: 3
command:
- --default-authentication-plugin=mysql_native_password
- --character-set-server=utf8mb4
- --collation-server=utf8mb4_unicode_ci
- --explicit_defaults_for_timestamp=1
- --max_allowed_packet=64M
2021-12-29 16:57:06 +08:00
logging:
options:
max-size: "10m"
max-file: "3"
2021-12-29 16:57:06 +08:00
2021-08-29 10:19:49 +08:00
ytdl:
image: bennythink/ytdlbot
env_file:
- .env
2025-01-29 01:31:28 +08:00
restart: always
2023-12-21 03:09:34 +08:00
volumes:
- ./youtube-cookies.txt:/app/youtube-cookies.txt
depends_on:
redis:
condition: service_healthy
mysql:
condition: service_healthy