Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save itsmikita/8154f2983a171ef06a7763b7929a3929 to your computer and use it in GitHub Desktop.
Save itsmikita/8154f2983a171ef06a7763b7929a3929 to your computer and use it in GitHub Desktop.
Wordpress + MariadDB with podman local development
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