我有一个带有 docker 映像的项目,其卷包含启动时的内容。是否有任何方法可以在卷上合并主机和容器的内容,同时将主机内容保留在容器中?
这是我的 compose.yml
services:
db:
image: mysql
environment:
MYSQL_DATABASE: ninja
MYSQL_ROOT_PASSWORD: pwd
app:
image: invoiceninja/invoiceninja
volumes:
- ./install-wipay.sh:/install-wipay.sh
- ./composer.json:/var/www/app/composer.json
# would like to merge and persist this volume
- ~/Documents/Git/heroku/invoiceninja/app/:/var/www/app
- ~/Documents/Git/omnipay-wipay/:/var/repo/omnipay-wipay/:ro
- ./.env:/var/www/app/.env:ro
- ./storage:/var/www/app/docker-backup-storage:rw
- ./logo:/var/www/app/docker-backup-public/logo/
links:
- db:mysql
env_file: .env
web:
image: nginx
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf:ro
Run Code Online (Sandbox Code Playgroud) 我尝试为 Laravel 7 安装和使用 adminLTE 3。
我有这个错误:
Argument 1 passed to JeroenNoten\LaravelAdminLte\AdminLte::__construct() must be of the type array, null given, called in /Applications/MAMP/htdocs/hedrinenew/vendor/jeroennoten/laravel-adminlte/src/AdminLteServiceProvider.php on line 23 (View: /Applications/MAMP/htdocs/hedrinenew/resources/views/adminlte.blade.php)
Run Code Online (Sandbox Code Playgroud)
我按照此页面的说明进行操作:https : //github.com/jeroennoten/Laravel-AdminLTE
这不是我第一次安装和使用 adminLTE,但那是我第一次遇到问题。