mirror of
https://github.com/Lissy93/dashy.git
synced 2025-12-06 08:34:14 +01:00
🐳 Updates port number in docker-compose and on the server-side
This commit is contained in:
parent
d64049697c
commit
b5bf57bd93
5 changed files with 8 additions and 8 deletions
|
|
@ -24,9 +24,9 @@ services:
|
||||||
# - /path/to/my-config.yml:/app/public/conf.yml
|
# - /path/to/my-config.yml:/app/public/conf.yml
|
||||||
# - /path/to/item-icons:/app/public/item-icons
|
# - /path/to/item-icons:/app/public/item-icons
|
||||||
|
|
||||||
# Set port that web service will be served on. Keep container port as 80
|
# Set port that web service will be served on. Keep container port as 8080
|
||||||
ports:
|
ports:
|
||||||
- 4000:80
|
- 4000:8080
|
||||||
|
|
||||||
# Set any environmental variables
|
# Set any environmental variables
|
||||||
environment:
|
environment:
|
||||||
|
|
|
||||||
|
|
@ -55,7 +55,7 @@
|
||||||
|
|
||||||
**Screenshots**: Checkout the [Showcase](https://github.com/Lissy93/dashy/blob/master/docs/showcase.md), to see example dashboards from the community
|
**Screenshots**: Checkout the [Showcase](https://github.com/Lissy93/dashy/blob/master/docs/showcase.md), to see example dashboards from the community
|
||||||
|
|
||||||
**Spin up your own demo**: [](https://labs.play-with-docker.com/?stack=https://raw.githubusercontent.com/Lissy93/dashy/master/docker-compose.yml) or [`docker run -p 8080:80 lissy93/dashy`](./docs/quick-start.md)
|
**Spin up your own demo**: [](https://labs.play-with-docker.com/?stack=https://raw.githubusercontent.com/Lissy93/dashy/master/docker-compose.yml) or [`docker run -p 8080:8080 lissy93/dashy`](./docs/quick-start.md)
|
||||||
|
|
||||||
|
|
||||||
<p align="center">
|
<p align="center">
|
||||||
|
|
@ -69,7 +69,7 @@
|
||||||
|
|
||||||
## Getting Started 🛫
|
## Getting Started 🛫
|
||||||
|
|
||||||
To deploy Dashy with Docker, just run `docker run -p 8080:80 lissy93/dashy`, then open `http://localhost:8080`
|
To deploy Dashy with Docker, just run `docker run -p 8080:8080 lissy93/dashy`, then open `http://localhost:8080`
|
||||||
|
|
||||||
For full list of options and a Docker compose file, see the [Deployment Docs](https://github.com/Lissy93/dashy/blob/master/docs/deployment.md).
|
For full list of options and a Docker compose file, see the [Deployment Docs](https://github.com/Lissy93/dashy/blob/master/docs/deployment.md).
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@ events { worker_connections 1024; }
|
||||||
|
|
||||||
http {
|
http {
|
||||||
server {
|
server {
|
||||||
listen 80;
|
listen 8080;
|
||||||
root /usr/share/nginx/html;
|
root /usr/share/nginx/html;
|
||||||
include /etc/nginx/mime.types;
|
include /etc/nginx/mime.types;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -36,7 +36,7 @@ const ENDPOINTS = require('./src/utils/defaults').serviceEndpoints; // API endpo
|
||||||
const isDocker = !!process.env.IS_DOCKER;
|
const isDocker = !!process.env.IS_DOCKER;
|
||||||
|
|
||||||
/* Checks env var for port. If undefined, will use Port 80 for Docker, or 4000 for metal */
|
/* Checks env var for port. If undefined, will use Port 80 for Docker, or 4000 for metal */
|
||||||
const port = process.env.PORT || (isDocker ? 80 : 4000);
|
const port = process.env.PORT || (isDocker ? 8080 : 4000);
|
||||||
|
|
||||||
/* Attempts to get the users local IP, used as part of welcome message */
|
/* Attempts to get the users local IP, used as part of welcome message */
|
||||||
const getLocalIp = () => {
|
const getLocalIp = () => {
|
||||||
|
|
|
||||||
|
|
@ -7,7 +7,7 @@
|
||||||
const http = require('http');
|
const http = require('http');
|
||||||
|
|
||||||
/* Location of the server to test */
|
/* Location of the server to test */
|
||||||
const port = process.env.PORT || !!process.env.IS_DOCKER ? 80 : 4000;
|
const port = process.env.PORT || !!process.env.IS_DOCKER ? 8080 : 4000;
|
||||||
const host = process.env.HOST || '0.0.0.0';
|
const host = process.env.HOST || '0.0.0.0';
|
||||||
const timeout = 2000;
|
const timeout = 2000;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue