Docker + nginx + MySQL + PHP
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

15 lines
399 B

version: '3'
services:
php-fpm:
image: helloz/php:7.4-fpm-alpine
network_mode: host
container_name: php-7.4
# Specify User ID and User Group
user: "${USER_ID}:${GROUP_ID}"
volumes:
- ./www.conf:/usr/local/etc/php-fpm.d/www.conf
- ./php.ini:/usr/local/etc/php/conf.d/php.ini
- ./log:/usr/local/log
- ../wwwroot:/var/www/html
restart: on-failure