Replies: 4 comments 5 replies
-
--publish 8080:3306 \ Do you have something listening on 3306? |
Beta Was this translation helpful? Give feedback.
-
--publish 8080:3306 \ I thought that was for mysql default port --publish 8080:80 I tried the above and Any idea? I'm quite new to podman and I have basic level of tcp port |
Beta Was this translation helpful? Give feedback.
-
ok a bit of research and I can run mysql with phpadmin these images using
credits goes to the only answer on this site How can I now run the webserver? It seems something is not right with port numbers using
ends up in degraded pod status and only phpinfo() page showing, not phpmyadmin login page as above Is it possible to create containers for different apps port using podman? If not, is it possible to create multiple pods that can access the same ressources, like one pod with a db container and phpmyadmin or pgadmin container and another pod with a webserver container and a container to the database in the first pod? |
Beta Was this translation helpful? Give feedback.
-
as this is my first time using containers, no docker experience at all, i understand podman doesn't allow multiports connection in the same container/pod, I'm not sure about what I'm saying, there is a lot of website with "Configuring container networking with Podman" but it's quite technical Would writing a script that creates a pod with port 8000 for web php page and when database work is required a script that closes the port 8000 pod and create a pod that allow phpmyadmin, pgadmin... database work. A script that acts like a switch depending on task front end web dev tasks of back end web dev tasks? I am going to try that unless someone has the answer or experience on this |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I am trying to build a small home web development container/pod.
From this link I can run apache2, php, mysql and phpmyadmin.
I use
podman-compose up -d
to run the server and access localhost:8000 and localhost:8080.I found another script from there to do the same but I would like to add phpmyadmin to the created pod.
I tried the following
`
`
and run it as user sh mklamp.sh
but I can only access index.php (http://127.0.0.1:8000/) but phpmyadmin (http://127.0.0.1:8080/) not accessible
curl localhost:8080
returns curl: (56) Recv failure: Connection reset by peer
Any help on this?
Beta Was this translation helpful? Give feedback.
All reactions