-
-
Save itsmikita/8154f2983a171ef06a7763b7929a3929 to your computer and use it in GitHub Desktop.
Wordpress + MariadDB with podman local development
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
podman pod create --publish 8080:80 --name demo.wp.1 | |
podman run -d --name wp.db --pod demo.wp.1 \ | |
-e MARIADB_USER=mariadb \ | |
-e MARIADB_PASSWORD=mariadb \ | |
-e MARIADB_ROOT_PASSWORD=mariadb \ | |
docker.io/library/mariadb | |
podman exec -it wp.db \ | |
mysql -e "CREATE DATABASE wordpress;" --user=root --password=mariadb | |
podman run -d --name wp.ui --pod demo.wp.1 \ | |
-e WORDPRESS_DB_HOST=127.0.0.1 \ | |
-e WORDPRESS_DB_USER=root \ | |
-e WORDPRESS_DB_PASSWORD=mariadb \ | |
-e WORDPRESS_DB_NAME=wordpress \ | |
-e WORDPRESS_TABLE_PREFIX=wc_ \ | |
docker.io/library/wordpress |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment