-
Run the Docker Compose File:
- Compose the
docker-compose.yml
file.
- Compose the
-
Run WordPress Installation Script:
- Execute
wordpress-install.sh
.
- Execute
-
Access WordPress Setup:
- Open your web browser and navigate to
localhost
to 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
db
from inside docker.
-
Modify Database Settings:
- Edit the
docker-compose.yml
file. - Locate the
mariadb
service. - Update the environment variables for MariaDB:
MARIADB_USER
:wordpress
MARIADB_PASSWORD
:wordpress
MARIADB_DATABASE
:wordpress
MYSQL_ROOT_PASSWORD
:wordpress_pass
- Edit the
-
Database init file:
mysql/init.sql
is run at the start of the container.
-
NGINX Settings:
nginx-conf
is located inside the nginx container at/etc/nginx/conf.d
. There you can modify the sites configuration files.