Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Unable to login after changing port 80 #3

Open
zahidhanif opened this issue Oct 23, 2023 · 7 comments
Open

Unable to login after changing port 80 #3

zahidhanif opened this issue Oct 23, 2023 · 7 comments

Comments

@zahidhanif
Copy link

I can’t use port 80 on my host. When I try and change the port in the compose file, I am unable to login. Can the port be changed?

@unmonoqueteclea
Copy link
Owner

unmonoqueteclea commented Oct 23, 2023 via email

@unmonoqueteclea
Copy link
Owner

unmonoqueteclea commented Oct 24, 2023

I've just pushed a fix for this. See readme file.
Environment variables can be used now to configure ports:

  • VOILIB_MANAGEMENT_PORT (for management page: default 8501)
  • VOILIB_FRONTEND_PORT (for frontend: default 80)
  • VOILIB_API_PORT (for backend: default 81)

@zahidhanif
Copy link
Author

Thanks, I have pulled the latest compose file and set the 3 environment variables:
VOILIB_MANAGEMENT_PORT=8501
VOILIB_FRONTEND_PORT=82
VOILIB_API_PORT=81
After issuing the compose up command, I get "Error starting userland proxy: listen tcp4 0.0.0.0:80: bind: address already in use"

@unmonoqueteclea
Copy link
Owner

I think there is something else going on with userland. I don't have any experience at all with it, so it's difficult to me to guess.

I tried to run the new compose file with those environment variables and frontend was correctly using the new port: 82.

I will reopen this to check if there are users having the same problem...

@zahidhanif
Copy link
Author

Just wondering if anyone else has reported this issue?

@unmonoqueteclea
Copy link
Owner

unmonoqueteclea commented Nov 3, 2023

I tried this again, and the frontend runs without any problem in the port 82 instead of the default 80

unmonoqueteclea:~/Downloads/voilib$ export VOILIB_FRONTEND_PORT=82
unmonoqueteclea:~/Downloads/voilib$ docker compose up

Did you stopped old containers from previous versions of Voilib first?

This shouldn't return anything:

docker ps | grep "voilib"

@zahidhanif
Copy link
Author

Thanks for the reply. I think I am going to give up on this as it's still not working for me.

I tried the following on a clean setup:

curl https://raw.githubusercontent.com/unmonoqueteclea/voilib/main/compose.yml -o docker-compose.yaml
export VOILIB_MANAGEMENT_PORT=8501
export VOILIB_FRONTEND_PORT=82
export VOILIB_API_PORT=81
sudo docker-compose up -d

I still get the error message:
Error response from daemon: driver failed programming external connectivity on endpoint voilib-frontend-1 (3262676781e059802b0971a50f8bbfab943f1b399c8ae4d0e49fe36fedbc1e9e): Error starting userland proxy: listen tcp4 0.0.0.0:80: bind: address already in use

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

No branches or pull requests

2 participants