A self-hosted media server and file management system
Vue ffmpegfile-serverjellyfinlaravelmediamedia-playermedia-servermediabrowsermediaservermusicmusic-librarymusic-playermusicplayerself-hostedvuejs
fix: docker performance low with horizon on low end vps
aminnausin4ee647b2519b
diff --git a/.env.example b/.env.exampleindex 1dfeaf5e..7baf9484 100755--- a/.env.example+++ b/.env.example@@ -79,10 +79,10 @@ VITE_PUSHER_PORT="${PUSHER_PORT}"VITE_PUSHER_SCHEME="${PUSHER_SCHEME}"VITE_PUSHER_APP_CLUSTER="${PUSHER_APP_CLUSTER}"VITE_BASE_URL="${APP_URL}"-VITE_LOGIN_MESSAGE=PULSE_SERVER_NAME="MediaServer"PULSE_SERVER_DIRECTORIES="/"+PULSE_INGEST_STORE=nullREVERB_APP_ID=355744REVERB_APP_KEY=@@ -105,3 +105,4 @@ PLAUSIBLE_DOMAIN=PLAUSIBLE_SITE_ID="${APP_HOST}"PLAUSIBLE_API_TOKEN=+LOGIN_MESSAGE=diff --git a/config/pulse.php b/config/pulse.phpindex 2de884f9..63d5bb7e 100644--- a/config/pulse.php+++ b/config/pulse.php@@ -63,7 +63,7 @@ return ['database' => ['connection' => env('PULSE_DB_CONNECTION'),- 'chunk' => 1000,+ 'chunk' => env('PULSE_INGEST_CHUNK', 1000),],],@@ -85,12 +85,13 @@ return ['trim' => ['lottery' => [1, 1_000],- 'keep' => '7 days',+ 'keep' => env('PULSE_INGEST_TRIM_KEEP', '7 days'),],'redis' => ['connection' => env('PULSE_REDIS_CONNECTION'),- 'chunk' => 1000,+ 'chunk' => env('PULSE_INGEST_CHUNK', 1000),+ 'interval' => env('PULSE_INGEST_INTERVAL', 1),],],diff --git a/docker-compose.yaml b/docker-compose.yamlindex fd02a5b3..9a39f542 100644--- a/docker-compose.yaml+++ b/docker-compose.yaml@@ -46,7 +46,7 @@ services:environment:- LOG_FILENAME=laravel-horizon.log- REVERB_PORT=6001- - REVERB_HOST=ws.app.test+ - REVERB_HOST=ws.${APP_HOST:-app.test}- REVERB_SCHEME=httpstop_signal: SIGTERMdepends_on:@@ -61,6 +61,55 @@ services:mediaserver-redis:mediaserver-db:aliases: []+ # queue:+ # <<: *app+ # container_name: job-queue+ # command: ['php', '/var/www/html/artisan', 'queue:work', '--tries=3']+ # environment:+ # - LOG_FILENAME=laravel-queue.log+ # - REVERB_PORT=6001+ # - REVERB_HOST=ws.${APP_HOST:-app.test}+ # - REVERB_SCHEME=http+ # ports: []+ # expose: []+ # stop_grace_period: 5s+ # stop_signal: SIGTERM+ # depends_on:+ # app:+ # condition: service_healthy+ # healthcheck:+ # test: ['CMD', 'healthcheck-queue']+ # start_period: 10s+ # networks:+ # default:+ # mediaserver-redis:+ # mediaserver-db:+ # aliases: []+ # labels: []+ # event-queue:+ # <<: *app+ # container_name: event-queue+ # command: ['php', '/var/www/html/artisan', 'queue:work', '--queue=high', '--tries=3']+ # environment:+ # - LOG_FILENAME=laravel-event-queue.log+ # - REVERB_PORT=6001+ # - REVERB_HOST=ws.${APP_HOST:-app.test}+ # - REVERB_SCHEME=http+ # ports: []+ # expose: []+ # stop_grace_period: 5s+ # stop_signal: SIGTERM+ # depends_on:+ # app:+ # condition: service_healthy+ # healthcheck:+ # test: ['CMD', 'healthcheck-queue']+ # networks:+ # default:+ # mediaserver-redis:+ # mediaserver-db:+ # aliases: []+ # labels: []scheduler:<<: *appcontainer_name: laravel-scheduler@@ -106,6 +155,27 @@ services:mediaserver-db:aliases:- ws.${APP_HOST:-app.test}+ pulse:+ <<: *app+ container_name: laravel-pulse+ command: ['php', '/var/www/html/artisan', 'pulse:work']+ init: true+ environment:+ - LOG_FILENAME=laravel-pulse.log+ ports: []+ expose: []+ stop_grace_period: 5s+ stop_signal: SIGTERM+ depends_on:+ app:+ condition: service_healthy+ healthcheck:+ test: ["CMD", "php", "artisan", "pulse:check"]+ networks:+ default:+ mediaserver-redis:+ mediaserver-db:+ aliases: []caddy:image: "lucaslorentz/caddy-docker-proxy:ci-alpine"container_name: caddydiff --git a/docker/.env.docker b/docker/.env.dockerindex fac512a5..ba664c43 100644--- a/docker/.env.docker+++ b/docker/.env.docker@@ -39,10 +39,17 @@ REDIS_HOST=redisREDIS_PASSWORD=phpredisREDIS_PORT=6379-# Queues/Cache — Set to database if you are not running Redis (Not Recommended)+# Queues/Cache — Set to database if you are not running Redis (redis is not recommended for queue connections if you have low resources)QUEUE_CONNECTION=redisCACHE_STORE=redis+# Pulse — Set PULSE_INGEST_STORE to null if you are not using pulse and redis+PULSE_INGEST_STORE=redis+# Tweak performance (optional)+PULSE_INGEST_CHUNK=250+PULSE_INGEST_INTERVAL=5+PULSE_INGEST_TRIM_KEEP="3 days"+# Trusted proxies — Change to proxy IPs if neededTRUSTED_PROXIES=*@@ -83,3 +90,11 @@ MAIL_PASSWORD=MAIL_ENCRYPTION=MAIL_FROM_ADDRESS="[email protected]"MAIL_FROM_NAME="${APP_NAME}"++# ================================+# Custom Config+# ================================++# Login Message — Show a custom message on the login screen+LOGIN_MESSAGE="This demo resets every 15 minutes.\nLogin with the following credentials.\[email protected] mediaserver"+