Add Swoole alternative backend

This commit is contained in:
Jonathan Sykes
2026-10-14 00:43:38 +08:00
parent f465cc86d0
commit 1130fabc94
11 changed files with 756 additions and 0 deletions

View File

@@ -0,0 +1,33 @@
services:
app:
build:
context: ../..
dockerfile: alt/swoole/Dockerfile
restart: unless-stopped
expose:
- "3000"
environment:
PORT: "3000"
DB_PATH: /app/data/ytplayer.sqlite
MEDIA_DIR: /app/data/media
MEDIA_VOLUME_MARKER: ${MEDIA_VOLUME_MARKER:-}
MEDIA_CACHE_MAX_BYTES: ${MEDIA_CACHE_MAX_BYTES:-10737418240}
APP_VERSION: ${APP_VERSION:-1.0.0}
SEARCH_INNERTUBE: ${SEARCH_INNERTUBE:-1}
volumes:
- swoole_data:/app/data
healthcheck:
test: ["CMD", "curl", "-fsS", "http://127.0.0.1:3000/api/version"]
interval: 30s
timeout: 5s
start_period: 10s
retries: 3
networks:
- dokploy-network
volumes:
swoole_data:
networks:
dokploy-network:
external: true