Files
phpstorm/docker-compose.yml
2024-10-17 00:35:53 +01:00

27 lines
976 B
YAML
Executable File

services:
nginx-web:
container_name: nginx-web
image: nginx
volumes:
- ./nginx/configs/:/etc/nginx/conf.d
- /home/boris/OneDrive/CSCS-Y2/Client Server Systems/PHPStorm Repo/nginx/nginx.conf:/etc/nginx/nginx.conf
- ./:/var/www/
- /home/boris/OneDrive/CSCS-Y2/Client Server Systems/PHPStorm Repo/access.log:/var/log/nginx/access.log
- /home/boris/OneDrive/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/
- /home/boris/OneDrive/CSCS-Y2/Client Server Systems/PHPStorm Repo/nginx/php/config/www.conf:/usr/local/etc/php-fpm.d/www.conf
- /home/boris/OneDrive/CSCS-Y2/Client Server Systems/PHPStorm Repo/nginx/php/fpm-php.www.log:/var/log/fpm-php.www.log