shiva
Sorry for replying so late
Because currently the aaPanel docker manager does not add the environment variable function, you need to use commands to create it. Here are my creation steps
- Install the database in aaPanel and create a database, I created the docker_wp library
- Choose to allow all IP connections in the database permissions (restrict IP access according to your needs)
- Confirm that the panel has released port 3306
- Execute the following command in the terminal to create a wordpress container
docker run --name WP -e WORDPRESS_DB_HOST=192.168.1.49 -e WORDPRESS_DB_USER=docker_wp -e WORDPRESS_DB_NAME=docker_wp -e WORDPRESS_DB_PASSWORD=GwZTFBEpirnLscPr -p 999:80 -d wordpress
- access http://ip:999 in the browser to see the installation interface