️Change port

This commit is contained in:
Victor Bodinaud
2025-02-27 13:23:32 +01:00
parent 8214b3f5b8
commit 4e0b086b65
3 changed files with 5 additions and 5 deletions

View File

@@ -17,7 +17,7 @@ COPY . .
RUN mkdir -p public
# Exposer le port sur lequel l'application s'exécute
EXPOSE 4000
EXPOSE 6000
# Commande pour démarrer l'application
CMD ["node", "server.js"]

View File

@@ -4,7 +4,7 @@ services:
ulule-tracker:
build: .
ports:
- "4000:4000"
- "6000:6000"
restart: unless-stopped
volumes:
- ./server.js:/app/server.js

View File

@@ -4,7 +4,7 @@ const axios = require('axios');
const cheerio = require('cheerio');
const path = require('path');
const app = express();
const port = process.env.PORT || 4000;
const port = process.env.PORT || 6000;
// Servir les fichiers statiques
app.use(express.static('public'));
@@ -336,6 +336,6 @@ app.get('/', (req, res) => {
});
// Démarrer le serveur
app.listen(port, '0.0.0.0', () => {
console.log(`Serveur démarré sur http://0.0.0.0:${port}`);
app.listen(port, '127.0.0.1', () => {
console.log(`Serveur démarré sur http://127.0.0.1:${port}`);
});