Changed API port from 5000 to 5500 + Small README change.

This commit is contained in:
Daniel31x13 2022-07-19 06:56:34 -04:00
parent c3cb056c70
commit 03ba5ad7e3
4 changed files with 5 additions and 5 deletions

View File

@ -25,5 +25,5 @@ RUN chown -R node:node /home/node /media
USER node
EXPOSE 5000
EXPOSE 5500
CMD node server.js

View File

@ -1,4 +1,4 @@
module.exports.port = process.env.PORT || 5000;
module.exports.port = process.env.PORT || 5500;
module.exports.URI = process.env.MONGODB_URI || "mongodb://localhost:27017"; // URI
module.exports.database = process.env.DB_NAME || "sample_db"; // Database name
module.exports.collection = process.env.COLLECTION_NAME || "list"; // Collection name

View File

@ -19,7 +19,7 @@ services:
volumes:
- ./api:/home/node
ports:
- 5000:5000
- 5500:5500
restart: unless-stopped
depends_on:
- mongo
@ -28,7 +28,7 @@ services:
build: .
environment:
# - DANGEROUSLY_DISABLE_HOST_CHECK=true
- REACT_APP_API_HOST=http://localhost:5000
- REACT_APP_API_HOST=http://localhost:5500
command: npm run go
volumes:
- /home/node/node_modules

View File

@ -1 +1 @@
export const API_HOST = process.env.REACT_APP_API_HOST || "http://localhost:5000"; // API full address
export const API_HOST = process.env.REACT_APP_API_HOST || "http://localhost:5500"; // API full address