diff --git a/README.md b/README.md index db25fb1..725b0e4 100644 --- a/README.md +++ b/README.md @@ -22,7 +22,7 @@ 4. cd into the direct where you store the "docker-compose.yml" file. 5. * run `docker-compose up -d` to start 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 `: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 `: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. ## 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 ` to create a new screen. where `` can be any name you choose. 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. -6. You can then access it on port 3000 +6. You can then access it on port 8080 ## 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. diff --git a/docker/docker-compose.yml b/docker/docker-compose.yml index 9a42796..e0be75d 100644 --- a/docker/docker-compose.yml +++ b/docker/docker-compose.yml @@ -4,5 +4,5 @@ services: image: teamalley/digital-walkaround container_name: digital-walkaround ports: - - 3000:3000 + - 8080:8080 restart: unless-stopped \ No newline at end of file