changed port number on readme
This commit is contained in:
parent
c9e51c21de
commit
725e9a7931
@ -22,7 +22,7 @@
|
|||||||
4. cd into the direct where you store the "docker-compose.yml" file.
|
4. cd into the direct where you store the "docker-compose.yml" file.
|
||||||
5. * run `docker-compose up -d` to start the service.
|
5. * run `docker-compose up -d` to start the service.
|
||||||
* run `docker-compose down` to stop the service
|
* run `docker-compose down` to stop the service
|
||||||
6. You can access it on port 3000 by default. To change the port number, edit docker-compose.yml. Under ports, replace `3000:3000` with `<the port number you want>:3000`. Then stop the service and start it again.
|
6. You can access it on port 8080 by default. To change the port number, edit docker-compose.yml. Under ports, replace `8080:8080` with `<the port number you want>:8080`. Then stop the service and start it again.
|
||||||
7. Node: you may exprience issues running the container in machines with limited ram. If the container restarts unexpectedly, try running `docker-compose up` without `-d` option to show the error messages.
|
7. Node: you may exprience issues running the container in machines with limited ram. If the container restarts unexpectedly, try running `docker-compose up` without `-d` option to show the error messages.
|
||||||
|
|
||||||
## Deploy directly on a Server
|
## Deploy directly on a Server
|
||||||
@ -34,7 +34,7 @@ Follow the instructions bellow.
|
|||||||
3. If you are installing it on a linux machine with `screen` installed, run `screen -S <name>` to create a new screen. where `<name>` can be any name you choose.
|
3. If you are installing it on a linux machine with `screen` installed, run `screen -S <name>` to create a new screen. where `<name>` can be any name you choose.
|
||||||
4. run `npm run start-prod`
|
4. run `npm run start-prod`
|
||||||
5. if you followed step 3, press `CTRL ^A` then press `D` while holding `CTRL ^A`. The screen will detach.
|
5. if you followed step 3, press `CTRL ^A` then press `D` while holding `CTRL ^A`. The screen will detach.
|
||||||
6. You can then access it on port 3000
|
6. You can then access it on port 8080
|
||||||
|
|
||||||
## Setup Reverse Proxy
|
## Setup Reverse Proxy
|
||||||
You can use Apache, Ngnix or other tools to set up a reverse proxy and connect it to a hostname. [here](https://httpd.apache.org/docs/2.4/howto/reverse_proxy.html) is a guide on apache reverse proxy setup.
|
You can use Apache, Ngnix or other tools to set up a reverse proxy and connect it to a hostname. [here](https://httpd.apache.org/docs/2.4/howto/reverse_proxy.html) is a guide on apache reverse proxy setup.
|
||||||
|
|||||||
@ -4,5 +4,5 @@ services:
|
|||||||
image: teamalley/digital-walkaround
|
image: teamalley/digital-walkaround
|
||||||
container_name: digital-walkaround
|
container_name: digital-walkaround
|
||||||
ports:
|
ports:
|
||||||
- 3000:3000
|
- 8080:8080
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
Reference in New Issue
Block a user