version: "3.8"
services:
php-fpm:
container_name: php-fpm
build:
context: ./../
dockerfile: ./docker/php-fpm/Dockerfile
args:
- PUID=${PUID}
- PGID=${PGID}
- INSTALL_XDEBUG=${INSTALL_XDEBUG}
environment:
PHP_IDE_CONFIG: "serverName=SimfonyApp"
volumes:
- /var/www/vendor/
- ./../:/var/www/
nginx:
container_name: nginx
build:
context: ./nginx
ports:
- ${NGINX_HOST_HTTP_PORT}:80
volumes:
- ..:/var/www:rw
depends_on:
- php-fpm
volumes:
db_data:
|