services:
postgres:
image: postgres:16-alpine
restart: unless-stopped
environment:
POSTGRES_DB: "daoliyu"
POSTGRES_USER: "daoliyu"
POSTGRES_PASSWORD: "daoliyupassword"
PGDATA: "/var/lib/postgresql/data/pgdata"
command:
- "postgres"
- "-c"
- "max_connections=200"
- "-c"
- "shared_buffers=256MB"
- "-c"
- "work_mem=32MB"
- "-c"
- "maintenance_work_mem=256MB"
- "-c"
- "checkpoint_completion_target=0.9"
- "-c"
- "wal_buffers=16MB"
- "-c"
- "port=5433"
healthcheck:
test: ["CMD-SHELL", "pg_isready -U daoliyu -d daoliyu -p 5433"]
interval: 10s
timeout: 5s
retries: 6
start_period: 30s
ports:
- "5433:5433"
volumes:
- {TRIM_APPDEST_VOL:-/vol1}/@appshare/{TRIM_APPNAME:-daoliyu-music}/postgres:/var/lib/postgresql/data
redis:
image: redis:7-alpine
restart: unless-stopped
depends_on:
postgres:
condition: service_started
command: ["redis-server", "--appendonly", "yes"]
volumes:
- {TRIM_APPDEST_VOL:-/vol1}/@appshare/{TRIM_APPNAME:-daoliyu-music}/redis:/data
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 10s
timeout: 5s
retries: 5
backend:
image: msmkls/daoliyu-backend:0.1.7
restart: unless-stopped
depends_on:
postgres:
condition: service_healthy
redis:
condition: service_started
environment:
NODE_ENV: production
APP_PORT: 4000
DATABASE_URL: "postgresql://daoliyu:daoliyupassword@postgres:5433/daoliyu?schema=public&connection_limit=25&pool_timeout=10&statement_timeout=60000&idle_in_transaction_session_timeout=60000"
VIDEO_TRANSCODE_CACHE: "/app/storage/transcoded/videos"
VIDEO_THUMBNAIL_CACHE: "/app/storage/thumbnails/videos"
REDIS_URL: "redis://redis:6379/0"
REGISTRATION_OPEN: "true"
LOG_LEVEL: "info"
volumes:
- {TRIM_APPDEST_VOL:-/vol1}/@appshare/{TRIM_APPNAME:-daoliyu-music}/storage:/app/storage
- /vol2/1000/音乐:/data/media
- {TRIM_APPDEST_VOL:-/vol1}/@appshare/{TRIM_APPNAME:-daoliyu-music}/audiobooks:/data/audiobooks
- {TRIM_APPDEST_VOL:-/vol1}/@appshare/{TRIM_APPNAME:-daoliyu-music}/music_videos:/data/music-videos
- {TRIM_APPDEST_VOL:-/vol1}/@appshare/{TRIM_APPNAME:-daoliyu-music}/playlists:/data/playlists
- {TRIM_APPDEST_VOL:-/vol1}/@appshare/{TRIM_APPNAME:-daoliyu-music}/plugins:/plugins
healthcheck:
test: ["CMD", "wget", "-qO-", "http://localhost:4000/health"]
interval: 30s
timeout: 5s
retries: 5
frontend:
image: msmkls/daoliyu-frontend:0.1.7
restart: unless-stopped
container_name: daoliyu-music-frontend
depends_on:
backend:
condition: service_started
ports:
不管怎么配置都扫描不到配置目录中的歌曲
