Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

how to change default port 80 to another port #53

Open
hsoftproject opened this issue Jan 31, 2022 · 1 comment
Open

how to change default port 80 to another port #53

hsoftproject opened this issue Jan 31, 2022 · 1 comment

Comments

@hsoftproject
Copy link

tanks for your code
how i change default port 80 to another port To avoid interference with iis? for example run this service to port 8080
http://localhost:8080

@CanciuCostin
Copy link
Owner

You need to change the port in the rails app Dockerfile:

# syntax=docker/dockerfile:1
FROM ruby:2.6.6
RUN apt-get update -y && apt-get install -y apt-file && apt-file update && apt-get install -y nodejs npm ca-certificates docker
RUN sh -c "echo "deb http://apt.postgresql.org/pub/repos/apt/ 'lsb_release -cs'-pgdg main" >> /etc/apt/sources.list.d/pgdg.list" && apt-get update
WORKDIR /app/android-spyware
ADD ./android-spyware /app/android-spyware
RUN gem install bundler:2.1.4 && bundle && npm install yarn -g && yarn install --check-files
ENTRYPOINT rails s -b 0.0.0.0 -p 80 #HERE

After that, you have to change the image and the port in docker-compose.yml

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants