question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Docker: Unable to customise port number

See original GitHub issue

Say port 8080 is not available and we would like change it, since we are deploying it via docker we could do this

services:
  flowable:
    image: flowable/all-in-one
    ports:
      - 1111:8080

But when I visit the url http://localhost:1111/flowable-modeler/

it redirects me to the url http://localhost:8080/flowable-idm/#/login?redirectOnAuthSuccess=true&redirectUrl=http://localhost:1111/flowable-modeler/

looks like its been hard-coded to 8080

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
techorixcommented, Feb 6, 2020

I can confirm that mapping container port 8080 to host port 9090 will in fact work: docker run -e FLOWABLE_COMMON_APP_IDM-URL=http://localhost:8080/flowable-idm -e FLOWABLE_COMMON_APP_IDM-ADMIN_USER=admin -e FLOWABLE_COMMON_APP_IDM-ADMIN_PASSWORD=test -e FLOWABLE_COMMON_APP_IDM-REDIRECT-URL=http://localhost:9090/flowable-idm -p9090:8080 flowable/all-in-one

All off the stuff on the flowable-modeler dockerhub page doesn’t work out of the box, though (anymore).

0reactions
yvoswillenscommented, Feb 6, 2020

Hi.

What do you mean with;

All off the stuff on the flowable-modeler dockerhub page doesn’t work out of the box, though (anymore).

This issue was about the all-in-one image. This runs the Flowable UI apps on a Tomcat servlet container. This means some of the Spring Boot (standalone) application properties do not apply. Like SERVER_PORT.

Read more comments on GitHub >

github_iconTop Results From Across the Web

port number not change for docker-compose - Stack Overflow
Have you checked your networks by using docker network ls You explicitly specified nat network. Did you created a custom one or using...
Read more >
How to start your Docker container using a different port
This error message means that another program (process) is listening on the port 8080. Since only one process can listen on a given...
Read more >
How to Create a New Docker with Custom Port - YouTube
Your browser can't play this video. ... Fix for Docker ' Port in Use' Error - How to Create a New Docker with...
Read more >
Docker How to configure ports for Containers ? - YouTube
Never used Docker ? Consider watching this 40-minute getting started video! - https://www.youtube.com/watch?v=BZiwpsnLLYQIn this video, ...
Read more >
Port Already Allocated Error - FIX - Change Ports on Containers
Here's how to fix the " Docker port is already allocated error" It has ... This also shows how to do this for...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found