Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Set container port dynamically (use a variable)

Featured Replies

Is it possible to set the conatiner port dynamically?

 

I have a container running on ports 8095 and 40123 by default.

I can change this via 2 variables (but this also affects the server, so the container ports would have to be changed as well)

 

What I mean as command

 

Default:

docker run -p 8095:8095 -p 40123:40123 ...

 

With modified ports:

docker run --env WEB_PORT=1234 --env=API_PORT=4321 -p 1234:1234 -p 4321:4321 ...

 

How can I set this dynamically in the config?

 

 

Bildschirmfoto vom 2022-11-05 16-01-38.png

Solved by Squid

  • Community Expert

Don't understand what you are trying to do that is different than docker port mapping 

  • Author

How can I configure "Container Port" with the corresponding variable and its Default Value

 

For example:

Variable WEB_PORT = 8095 (Default, can be changed)

 

Container Port = $WEB_PORT (Changes automatically when variable is changed)

  • Author

Ah ok thanks

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.