shortcode - ๐Ÿ‹ Docker for Wordpress made easy

Just copy this into a docker-compose.yml in your project root, and then run docker-compose up -d ๐Ÿš€

version: '2'
services:
my-wpdb:
image: mariadb
ports:
- '8081:3306'
environment:
MYSQL_ROOT_PASSWORD: root
my-wp:
image: wordpress
volumes:
- ./:/var/www/html
ports:
- '8080:80'
links:
- my-wpdb:mysql
environment:
WORDPRESS_DB_PASSWORD: root

Hope that helps, Ryo


References

๐Ÿ”— This post was filed under

Blue square avatar white centered hiragana text reading Ryosuke

@Ryosuke1 years ago