Wordpress
WordPress is a popular open-source content management system (CMS) and website creation platform. It provides a user-friendly interface for building and managing websites, blogs, and online content without requiring advanced technical skills. WordPress offers a wide range of themes, plugins, and customization options, making it highly adaptable for various web projects. It is widely used for personal blogs, business websites, e-commerce sites, and more, making it one of the most versatile and widely used website building platforms in the world.
This will run wordpress under http://localhost:9090 inside your network
version: '3.1'
services:
wordpress:
image: wordpress
restart: always
ports:
- 9090:80
environment:
WORDPRESS_DB_HOST: db
WORDPRESS_DB_USER: [user_db]
WORDPRESS_DB_PASSWORD: [password_db]
WORDPRESS_DB_NAME: [name_db]
volumes:
- /home/[user]/docker/[wordpress_site]/wordpress:/var/www/html
db:
image: mysql:5.7
restart: always
environment:
MYSQL_DATABASE: [name_db]
MYSQL_USER: [user_db]
MYSQL_PASSWORD: [password_db]
volumes:
- /home/[user]/docker/[wordpress_site]/db:/var/lib/mysqlCopy
NOTE:
[user] Corresponds to the folder of your user in your system
[user_db] The desired username for the database
[password_db] The desired password for the database
[name_db] The desired name for the database
[wordpress_site] The folder name for the wordpress site