diff --git a/docker-compose.yml b/docker-compose.yml index ecdc650..c885b12 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -11,6 +11,7 @@ services: - ./docker/.env_florence:/var/www/html/.env - ./docker/apache/sites-enabled/bibliobooks_florence.conf:/etc/apache2/sites-available/000-default.conf working_dir: /var/www/html + command: bash -c "composer install && php artisan key:generate && php artisan migrate && php artisan db:seed && chown -R www-data:www-data storage bootstrap" ports: - "8001:80" depends_on: @@ -28,6 +29,7 @@ services: - ./docker/.env_milan:/var/www/html/.env - ./docker/apache/sites-enabled/bibliobooks_milan.conf:/etc/apache2/sites-available/000-default.conf working_dir: /var/www/html + command: bash -c "composer install && php artisan key:generate && php artisan migrate && php artisan db:seed && chown -R www-data:www-data storage bootstrap" ports: - "8002:80" depends_on: diff --git a/docker/.env_florence b/docker/.env_florence index d0270d8..0db5645 100644 --- a/docker/.env_florence +++ b/docker/.env_florence @@ -1,6 +1,6 @@ APP_NAME="Bibliobooks Florence" APP_ENV=local -APP_KEY=base64:zT80BRHQzYQyAMm83ACwJGVTSELMbxR1DaDzIFwk3Hw= +APP_KEY= APP_DEBUG=true APP_URL=http://localhost:8001 diff --git a/docker/.env_milan b/docker/.env_milan index 2a867e7..cd6e1b4 100644 --- a/docker/.env_milan +++ b/docker/.env_milan @@ -1,6 +1,6 @@ APP_NAME="Bibliobooks Milan" APP_ENV=local -APP_KEY=base64:zT80BRHQzYQyAMm83ACwJGVTSELMbxR1DaDzIFwk3Hw= +APP_KEY= APP_DEBUG=true APP_URL=http://localhost:8002