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

BACKREST_PORT not honored in Docker #643

Open
mmomjian opened this issue Jan 17, 2025 · 1 comment
Open

BACKREST_PORT not honored in Docker #643

mmomjian opened this issue Jan 17, 2025 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@mmomjian
Copy link

mmomjian commented Jan 17, 2025

Describe the bug
Per the docs, the port can be changed with BACKREST_PORT. However, when setting BACKREST_PORT set, the listening port is not changed. Thank you!

logs:
2025-01-17T14:15:11.975-0500 INFO starting web server :9898

docker-compose.yml:

      BACKREST_PORT: '0.0.0.0:17249'

docker inspect backrest (sections):

        "Args": [
            "--",
            "/backrest",
            "--bind-address",
            ":9898"
        ],
            "Env": [
                "BACKREST_PORT=0.0.0.0:17249",

To Reproduce
Set BACKREST_PORT

Expected behavior
Backrest listening port changes

Platform Info

  • Debian 12, Backrest 2.32.1
@mmomjian mmomjian added the bug Something isn't working label Jan 17, 2025
@garethgeorge
Copy link
Owner

Good point -- for others looking at this issue the best workaround is by using docker port mapping e.g.

-p 1234:9898. You can also override the entrypoint command for the container and specify your own --bind-address flags. This is non-standard for most docker containers however and probably needs fixing. I think backrest should probably start providing a wrapper script that sets these defaults, perhaps with the next major version release.

@garethgeorge garethgeorge self-assigned this Jan 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants