php-fpm docker for my nginx container
1.1K
Build the image with (mind the dot):
$ docker build -t uwegerdes/php-fpm .
Normal use is with the docker-compose.yaml file.
Make sure you run uwegerdes/mysql and uwegerdes/mail and have uwegerdes/data started with a htdocs directory on your system.
Now run the php-fpm container:
$ docker run -d \
-v $(pwd)/htdocs:/var/www/htdocs \
--link mysql \
--link mail \
--name php-fpm \
uwegerdes/php-fpm
php-fpm needs the php files from ./htdocs and the application uses network to mysql and mail server.
It opens port 9000 to allow communication for the uwegerdes/nginx container.
To see what is happening inside the running container you might want to:
$ docker exec -it php-fpm tail -f /var/log/www-fpm.log
$ docker exec -it php-fpm bash
Hit CTRL-C to stop the tail command and CTRL-D to exit the bash.
Content type
Image
Digest
Size
107.1 MB
Last updated
over 6 years ago
docker pull uwegerdes/php-fpm