Files
ninja-php/docker-compose.yml
mohammad jalmoudy 276606d2eb remove versioning
add xdebug config file
2025-12-14 01:35:42 +03:30

23 lines
528 B
YAML

services:
php:
build:
context: ./docker/php
dockerfile: Dockerfile
container_name: php-fpm
volumes:
- ./src:/var/www/html/src
- ./vendor:/var/www/html/vendor
- ./.env:/var/www/html/.env
- ./docker/php/xdebug.ini:/usr/local/etc/php/conf.d/xdebug.ini
nginx:
image: nginx:alpine
container_name: nginx
ports:
- "8080:80"
volumes:
- ./src:/var/www/html/src
- ./docker/nginx/default.conf:/etc/nginx/conf.d/default.conf
depends_on:
- php