mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2026-04-26 01:35:54 +03:00
[GH-ISSUE #719] [Raspberry] Setting host-port with "docker-run -p" does not work (defaults to 80) #485
Labels
No labels
SSO
Third party
better for forum
bug
bug
documentation
duplicate
enhancement
future Vault
future Vault
future Vault
good first issue
help wanted
low priority
notes
pull-request
question
troubleshooting
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/vaultwarden#485
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Timeeee on GitHub (Nov 13, 2019).
Original GitHub issue: https://github.com/dani-garcia/vaultwarden/issues/719
I'm using the raspberry-image.
Using the docker-run command from the wiki doesn't set the containers host port correctly.
running
adds the container with exposed port 8080, but the host port is set to 80. This leads to issues as I have another service running with host-port 80.
I didn't try using a fixed IP with port, as this is not possible in my environment.
@mprasil commented on GitHub (Nov 13, 2019):
-psets the port forwarding. So if you want to expose port80in the container as8080on the host you need to do-p 8080:80.@Timeeee commented on GitHub (Nov 13, 2019):
I assumed there is a way to change the host port itself (not the forwarding) with
-pas well. So there is no way to change the host port, which is in this case fixed to80, right?edit: I will play around some more with the settings, looks like I might have messed up something. Will give feedback once I did that. Sorry for creating the issue in the first place @mprasil !
Fantastic work btw :)
@mprasil commented on GitHub (Nov 13, 2019):
Well you were asking about the host side port as that's where the conflict is. I assume that
bitwarden_rswill never conflict with the default port80inside the container as it's the only thing running inside the container.If for some reason you really want to change the port where
bitwarden_rslistens inside the container, you can do that by setting theROCKET_PORTvariable. But you'd have adapt the port forward as well:-e ROCKET_PORT=2345 -p 8080:2345@Timeeee commented on GitHub (Nov 13, 2019):
Thank you very much, I finally got it running!