Replies: 2 comments
-
Check out two demos I wrote about wordpress and mariadb. One using Unix sockets and one using TCP sockets. Container images used in the demos:
For details, see #16053 (comment) The use of See for example
that can now be written much shorter:
|
Beta Was this translation helpful? Give feedback.
-
When using a pod, you typically would use Side note: using a custom network is more secure than using |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi!
I've managed to get Wordpress and Mariadb containers up and running in my pod (that I'm running on my Firewall, OpenSUSE Leap) but how do I get them to communicate?
Start commands:
podman pod create M.I.N.D.
podman run -d --pod M.I.N.D. --network=host -e MYSQL_ROOT_PASSWORD=******* -v mariadb_data:/var/lib/mysql docker.io/library/mariadb:10.5
podman run -d --pod M.I.N.D. --network=host wordpress:latest
Now looks like this:
podman container ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
8228ab6af068 localhost/podman-pause:4.9.5-1748865600 2 hours ago Up 2 hours ee01460f2844-infra
6e8a39909dfc docker.io/library/wordpress:latest apache2-foregroun... 39 minutes ago Up 39 minutes quizzical_morse
a2a14d2c50a1 docker.io/library/mariadb:10.5 mysqld 39 minutes ago Up 39 minutes jolly_swirles
When I try to configure Wordpress it asks for "Database host" but I can't figure out what to put there?
Any ideas?
Kind regards
Henrik
Beta Was this translation helpful? Give feedback.
All reactions