add docker composer file to run application inside docker

This commit is contained in:
2025-12-13 23:59:40 +03:30
parent a89d5e1292
commit 3c194fe99d

23
docker-compose.yml Normal file
View File

@@ -0,0 +1,23 @@
version: '3.8'
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
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