Version 1.3.0 - Ajout de Docker
This commit is contained in:
19
Dockerfile
Normal file
19
Dockerfile
Normal 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
16
docker-compose.yml
Normal 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
3707
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "chopin-backend",
|
"name": "chopin-backend",
|
||||||
"version": "1.2.0",
|
"version": "1.3.0",
|
||||||
"description": "Discord Bot for music - Fetching everywhere !",
|
"description": "Discord Bot for music - Fetching everywhere !",
|
||||||
"main": "src/main.js",
|
"main": "src/main.js",
|
||||||
"nodemonConfig": {
|
"nodemonConfig": {
|
||||||
@@ -30,16 +30,19 @@
|
|||||||
"ffprobe-static": "^3.1.0",
|
"ffprobe-static": "^3.1.0",
|
||||||
"fluent-ffmpeg": "^2.1.3",
|
"fluent-ffmpeg": "^2.1.3",
|
||||||
"googleapis": "^149.0.0",
|
"googleapis": "^149.0.0",
|
||||||
|
"https-proxy-agent": "^7.0.6",
|
||||||
"libsodium-wrappers": "^0.7.15",
|
"libsodium-wrappers": "^0.7.15",
|
||||||
"loguix": "^1.4.2",
|
"loguix": "^1.4.2",
|
||||||
"mime-types": "^3.0.1",
|
"mime-types": "^3.0.1",
|
||||||
"nodemon": "^3.1.10",
|
"nodemon": "^3.1.10",
|
||||||
"pm2": "^5.4.3",
|
"pm2": "^6.0.11",
|
||||||
"socket.io": "^4.8.1",
|
"socket.io": "^4.8.1",
|
||||||
"soundcloud.ts": "^0.6.3",
|
"soundcloud.ts": "^0.6.3",
|
||||||
"spotify-web-api-node": "^5.0.2",
|
"spotify-web-api-node": "^5.0.2",
|
||||||
|
"undici": "^7.16.0",
|
||||||
"uuid": "^11.1.0",
|
"uuid": "^11.1.0",
|
||||||
"webmetrik": "^0.1.4",
|
"webmetrik": "^0.1.4",
|
||||||
|
"youtubei.js": "^15.1.1",
|
||||||
"yt-search": "^2.13.1",
|
"yt-search": "^2.13.1",
|
||||||
"ytfps": "^1.2.0"
|
"ytfps": "^1.2.0"
|
||||||
}
|
}
|
||||||
|
@@ -283,6 +283,7 @@ class Player {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async setDuration(duration) {
|
async setDuration(duration) {
|
||||||
|
|
||||||
//FIXME: SET DURATION FONCTIONNE TRES LENTEMENT
|
//FIXME: SET DURATION FONCTIONNE TRES LENTEMENT
|
||||||
if (this.checkConnection()) return;
|
if (this.checkConnection()) return;
|
||||||
if (this.queue.current == null) return;
|
if (this.queue.current == null) return;
|
||||||
|
@@ -447,7 +447,6 @@ async function setFullBan(id) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
function deleteAccount(id) {
|
function deleteAccount(id) {
|
||||||
const user = getUserById(id);
|
const user = getUserById(id);
|
||||||
if (user) {
|
if (user) {
|
||||||
|
Reference in New Issue
Block a user