Wordpress, Docker and Portainer: Debian or Ubuntu install - HowTo - 3 Minutes
commands: https://wiki.pcw.de/tutorials/docker/...
If you like the video, please give me a thumbs up!
If you don't like the video, please let me know why in the comments!
If it doesn't work for you, let me help you if you tell me what doesn't work in the comment section.
mkdir -p $HOME/docker/{mariadb,wordpress}
MariaDB
docker run -d --name mariadb --restart=always -p 3306:3306 \
-e MARIADB_ROOT_PASSWORD=supersecret \
-e MARIADB_USER=wordpress \
-e MARIADB_PASSWORD=wordpress \
-e MARIADB_DATABASE=wordpress \
-v $HOME/docker/mariadb/data:/var/lib/mysql \
-v /var/run/mysqld:/var/run/mysqld \
mariadb
Wordpress
docker run -d --name wordpress --restart=always -p 80:80 \
--link mariadb:mysql \
-e WORDPRESS_DB_USER=wordpress \
-e WORDPRESS_DB_PASSWORD=wordpress \
-e WORDPRESS_DB_NAME=wordpress \
-v $HOME/docker/wordpress:/var/www/html \
wordpress