WordPress container with Nginx 1.20 & PHP-FPM 8.3 based on Alpine Linux
MIT License
Lightweight WordPress container with Nginx 1.26 & PHP-FPM 8.3 based on Alpine Linux.
WordPress version currently installed: 6.5.5
I can help you with Containerization, Kubernetes, Monitoring, Infrastructure as Code and other DevOps challenges.
See docker-compose.yml how to use it in your own environment.
docker-compose up
Or
docker run -d -p 80:80 -v /local/folder:/var/www/wp-content \
-e "DB_HOST=db" \
-e "DB_NAME=wordpress" \
-e "DB_USER=wp" \
-e "DB_PASSWORD=secret" \
-e "FS_METHOD=direct" \
trafex/wordpress
This image includes wp-cli which can be used like this:
docker exec <your container name> /usr/local/bin/wp --path=/usr/src/wordpress <your command>