Files
phpstorm/docker-compose.yml
2025-02-06 12:28:24 +00:00

27 lines
1.1 KiB
YAML
Executable File

services:
nginx-web:
container_name: nginx-web
image: nginx
volumes:
- ./nginx/configs/:/etc/nginx/conf.d
- /Users/boris/OneDrive/OneDrive - University of Salford/CSCS-Y2/Client Server Systems/PHPStorm Repo/nginx/nginx.conf:/etc/nginx/nginx.conf
- ./:/var/www/
- /Users/boris/OneDrive/OneDrive - University of Salford/CSCS-Y2/Client Server Systems/PHPStorm Repo/access.log:/var/log/nginx/access.log
- /Users/boris/OneDrive/OneDrive - University of Salford/CSCS-Y2/Client Server Systems/PHPStorm Repo/error.log:/var/log/nginx/error.log
ports:
- "8088:80"
environment:
- NGINX_HOST=localhost
- NGINX_PORT=8088
links:
- php-fpm
depends_on:
- php-fpm
php-fpm:
container_name: php-fpm
image: php:8-fpm
volumes:
- ./:/var/www/
- /Users/boris/OneDrive/OneDrive - University of Salford/CSCS-Y2/Client Server Systems/PHPStorm Repo/nginx/php/config/www.conf:/usr/local/etc/php-fpm.d/www.conf
- /Users/boris/OneDrive/OneDrive - University of Salford/CSCS-Y2/Client Server Systems/PHPStorm Repo/nginx/php/fpm-php.www.log:/var/log/fpm-php.www.log