This file will setup Wordpress, MySQL & PHPMyAdmin with a single command. Add the code below to a file called "docker-compose.yaml" and run the command
$ docker-compose up -d
# To Tear Down
$ docker-compose down --volumes
| oldContainers="$(docker ps -f "status=exited" | grep -E 'Exited \(.*\) [5-9] h|Exited \(.*\) \d\d h' | awk '{ print $1 }')" | |
| echo -e -n "\nRemoving containers older than 4 hours" | |
| if [ "$oldContainers" != "" ]; then | |
| echo "" | |
| docker rm $oldContainers | |
| else | |
| echo "...none found." | |
| fi |
| events { | |
| worker_connections 1024; | |
| } | |
| http { | |
| default_type text/html; | |
| access_log /dev/stdout; | |
| sendfile on; | |
| keepalive_timeout 65; |
Proxy cache passes GET instead of HEAD to upstream... so we have a 403.
This version include these fixes.