mirror of
https://github.com/ceratic/MediaCollectorLibary.git
synced 2026-05-13 23:56:46 +02:00
first commit
This commit is contained in:
36
docker-compose.override.yml
Normal file
36
docker-compose.override.yml
Normal file
@@ -0,0 +1,36 @@
|
||||
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
|
||||
Reference in New Issue
Block a user