version: '3.8' services: app: volumes: - .:/var/www:cached - /var/www/node_modules - /var/www/vendor environment: - APP_ENV=development command: > sh -c " composer install && npm install && php setup.php && php-fpm " nginx: volumes: - ./public:/var/www/public:ro - ./docker/nginx.conf:/etc/nginx/conf.d/default.conf:ro ports: - "8000:80" # Watch for frontend changes during development frontend-watcher: build: . container_name: media-collector-watcher volumes: - .:/var/www:cached - /var/www/node_modules working_dir: /var/www command: npm run dev profiles: - dev