I wanted lately to change the wildfly version in my Dockerfile to the latest version. But weirdly it’s not an easy task. My wildfly version was 18.0.1final, but now if I change it to e.g. 21.0.1 latest I get an error saying that the default ports are in use. I tried to run the container isolated and I noticed that the server starts in mode standalone automatically and if I want to run the domain mode I simply can’t (I don’t want to change the ports offset) and if I mention concretely that I want the domain mode, then I have another problem connecting using the docker-compose
my dockerfile :
> FROM jboss/wildfly:version ENV DB_HOST postgres ....config (RUN and COPY commands for the log files and war deployment)
my docker compose _
version: "3.7" services: postgres: image: postgres image environment: - POSTGRES_USER=user - POSTGRES_PASSWORD=password ports: - "5432" wildfly: build: docker depends_on: - postgres ports: - "8080" command: sh -c "tail -F /opt/jboss/wildfly/domain/log/host-controller.log /opt/jboss/wildfly/domain/log/process-controller.log /opt/jboss/wildfly/domain/servers/customerdatabase-backend_master/log/server.log /opt/jboss/wildfly/domain/servers/customerdatabase-backend_master/log/customerdatabase-backend.log >> /opt/jboss/wildfly/merged.log & /opt/jboss/wildfly/bin/domain.sh -b 0.0.0.0 -Djgroups.bind_addr=127.0.0.1"
if I just change the wildfly version I get the error : default ports are in use ..
Source: Docker Questions