Version 1.3.0 - Ajout de Docker

This commit is contained in:
2025-10-04 17:28:50 +02:00
parent 96cd60912b
commit ca4a20a1b2
6 changed files with 2359 additions and 1392 deletions

19
Dockerfile Normal file
View File

@@ -0,0 +1,19 @@
FROM node:lts-alpine
# Crée un dossier de travail
WORKDIR /app
# Copie package.json et package-lock.json
COPY package*.json ./
# Installe les dépendances
RUN npm install
# Copie le code source (mais pas le dossier data, qui sera monté en volume)
COPY . .
# Expose le port backend
EXPOSE 4000
# Commande de démarrage
CMD ["node", "src/utils/main.js"]

16
docker-compose.yml Normal file
View File

@@ -0,0 +1,16 @@
version: "3.9"
services:
subsonics-backend:
build:
context: . # dossier backend
dockerfile: Dockerfile
container_name: subsonics-backend
ports:
- "4000:4000"
volumes:
- subsonics-backend-data:/app/data
restart: unless-stopped
volumes:
subsonics-backend-data:

3707
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@@ -1,6 +1,6 @@
{
"name": "chopin-backend",
"version": "1.2.0",
"version": "1.3.0",
"description": "Discord Bot for music - Fetching everywhere !",
"main": "src/main.js",
"nodemonConfig": {
@@ -30,16 +30,19 @@
"ffprobe-static": "^3.1.0",
"fluent-ffmpeg": "^2.1.3",
"googleapis": "^149.0.0",
"https-proxy-agent": "^7.0.6",
"libsodium-wrappers": "^0.7.15",
"loguix": "^1.4.2",
"mime-types": "^3.0.1",
"nodemon": "^3.1.10",
"pm2": "^5.4.3",
"pm2": "^6.0.11",
"socket.io": "^4.8.1",
"soundcloud.ts": "^0.6.3",
"spotify-web-api-node": "^5.0.2",
"undici": "^7.16.0",
"uuid": "^11.1.0",
"webmetrik": "^0.1.4",
"youtubei.js": "^15.1.1",
"yt-search": "^2.13.1",
"ytfps": "^1.2.0"
}

View File

@@ -283,6 +283,7 @@ class Player {
}
async setDuration(duration) {
//FIXME: SET DURATION FONCTIONNE TRES LENTEMENT
if (this.checkConnection()) return;
if (this.queue.current == null) return;

View File

@@ -447,7 +447,6 @@ async function setFullBan(id) {
}
}
function deleteAccount(id) {
const user = getUserById(id);
if (user) {