--- version: "3.4" services: app: build: context: . dockerfile: devops/docker/php/Dockerfile target: local restart: always environment: COMPOSER_MEMORY_LIMIT: "-1" PHP_IDE_CONFIG: "serverName=notification-provider_php" volumes: - ./app:/var/www/localhost expose: - "9000" nginx: image: nginx:1.21-alpine restart: always depends_on: - app volumes: - ./app:/var/www/localhost - ./devops/docker/nginx/etc/nginx/conf.d/default.conf:/etc/nginx/conf.d/default.conf ports: - "8054:80" ...