A FastCGI PHP8 run in container
1.5K
A FastCGI PHP run in container
docker build -t php-fpm-8:latest .
docker run -d --name php-fpm php-fpm-8:latest
version: '3'
services:
mysql:
image: mysql
container_name: mysql
restart: always
volumes:
- "./mysql/data:/var/lib/mysql"
- "./mysql/run:/var/run/mysqld"
environment:
MYSQL_ROOT_PASSWORD: 123456
php-fpm:
build: ./Dockerfile
restart: always
container_name: php-fpm
depends_on:
- mysql
volumes:
- "./mysql/run:/var/run/mysqld"
You can use the pre-build image.
docker run -d --name php-fpm junorz/php-fpm-8-containerized:latest
Content type
Image
Digest
sha256:34a08e924…
Size
259.4 MB
Last updated
over 3 years ago
docker pull junorz/php-fpm-8-containerized