Giter Club home page Giter Club logo

Comments (5)

TimWolla avatar TimWolla commented on June 29, 2024 2

I don't understand. The container runs in its own network namespace, thus it does not collide with other containers.

That being said: If you want to switch the port you can simply pass a custom command when starting the standalone container. The port is not being referenced anywhere else:

CMD [ "php", "-S", "[::]:8080", "-t", "/var/www/html" ]

For fastcgi you would need to either sed -i 's/9000/WHATEVER/' /usr/local/etc/php-fpm.d/zz-docker.conf or load your custom configuration using a volume.

from docker-adminer.

danieledwardgeorgehitchcock avatar danieledwardgeorgehitchcock commented on June 29, 2024

Thanks for your reply.

Yes I understand that the container runs in its own network namespace however, if I had two containers running on the same port and then wished to reverse proxy both of them, I would get a clash hence the need to be able to change port.

from docker-adminer.

TimWolla avatar TimWolla commented on June 29, 2024

if I had two containers running on the same port and then wished to reverse proxy both of them, I would get a clash hence the need to be able to change port.

You would not get a clash. You can either specify the IP address of the container in your reverse proxy or specify a different host port when using Docker's port forwarding feature.

from docker-adminer.

danieledwardgeorgehitchcock avatar danieledwardgeorgehitchcock commented on June 29, 2024

So if the container is joined to the same network as another container running a service on port 8080 (say for example a network named reverse_proxy), the ports won't clash?

This isn't what I have experienced in my setup..

from docker-adminer.

TimWolla avatar TimWolla commented on June 29, 2024

So if the container is joined to the same network as another container running a service on port 8080 (say for example a network named reverse_proxy), the ports won't clash?

They won't. I run a bunch of services using the same port within a single Docker network in my machines.

This isn't what I have experienced in my setup..

This is outside the scope of this repository then. Please seek support with Docker / file a bug with Docker.

from docker-adminer.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.