docker-tp6-php74/docker-compose.yml
2024-01-23 10:28:40 +08:00

24 lines
517 B
YAML

version: "3.1"
services:
php:
image: wandoubaba517/php-fpm:7.4
container_name: phpfpm74
restart: always
volumes:
- ./php.ini:/usr/local/etc/php/php.ini
- ./:/var/www/html
stdin_open: true
nginx:
image: nginx:1.24
container_name: phpfpmnginx
restart: always
volumes:
- ./nginx/nginx.conf:/etc/nginx/nginx.conf
- ./nginx/conf.d:/etc/nginx/conf.d
- ./:/usr/share/nginx/html
stdin_open: true
ports:
- 8008:80
depends_on:
- php