-
Run the Docker Compose File:
- Compose the
docker-compose.ymlfile.
- Compose the
-
Run WordPress Installation Script:
- Execute
wordpress-install.sh.
- Execute
-
Access WordPress Setup:
- Open your web browser and navigate to
localhostto complete the WordPress installation.
- Open your web browser and navigate to
-
Update WordPress Configuration File:
- Add the following line to
/var/www/html/cfm/wp_config.php:define('FS_METHOD', 'direct');
- Add the following line to
- Ip for database is
dbfrom inside docker.
-
Modify Database Settings:
- Edit the
docker-compose.ymlfile. - Locate the
mariadbservice. - Update the environment variables for MariaDB:
MARIADB_USER:wordpressMARIADB_PASSWORD:wordpressMARIADB_DATABASE:wordpressMYSQL_ROOT_PASSWORD:wordpress_pass
- Edit the
-
Database init file:
mysql/init.sqlis run at the start of the container.
-
NGINX Settings:
nginx-confis located inside the nginx container at/etc/nginx/conf.d. There you can modify the sites configuration files.