Files
MediaCollectorLibary/docker-compose.override.yml
Lars Behrends 929ee43001 first commit
2025-10-17 13:29:28 +02:00

37 lines
724 B
YAML

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