Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/laravel/10.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
使用Docker Compose部署Laravel网站时出错_Laravel_Docker_Ubuntu_Docker Compose - Fatal编程技术网

使用Docker Compose部署Laravel网站时出错

使用Docker Compose部署Laravel网站时出错,laravel,docker,ubuntu,docker-compose,Laravel,Docker,Ubuntu,Docker Compose,我试图用docker compose(docker compose.yml)部署我的Laravel网站,一旦我运行我的compose文件,网站就会抛出一个错误 找不到驱动程序(SQL:select*from…) 我看了很多文章,找不到解决这个问题的办法。谁能帮个忙吗 Docker Compose版本:3.2 Docker引擎版本:19* 这是我的docker compose.yml文件: version: '3.2' services: wserver: image: ngin

我试图用docker compose(docker compose.yml)部署我的Laravel网站,一旦我运行我的compose文件,网站就会抛出一个错误

找不到驱动程序(SQL:select*from…)

我看了很多文章,找不到解决这个问题的办法。谁能帮个忙吗

Docker Compose版本:3.2 Docker引擎版本:19*

这是我的
docker compose.yml
文件:

version: '3.2'

services:

  wserver:
    image: nginx:latest
    container_name: web-nginx
    ports:
      - 4080:80
    volumes:
      - type: bind
        source: /root/website/files
        target: /var/www/html
      - type: bind
        source: /root/website/nginx/conf.d/
        target: /etc/nginx/conf.d/

  phpweb:
    build:
        context: ./php/
    container_name: web-phpfpm
    ports:
      - 4900:9000
    volumes:
      - type: bind
        source: /root/website/files
        target: /var/www/html

  dbserver:
    image: mariadb:latest
    container_name: web-mariadb
    ports:
      - 4306:3306
    volumes:
      - type: bind
        source: /root/website/mariadb/
        target: /var/lib/mysql/
      - type: bind
        source: /root/website/mysql/mariadb.conf.d/
        target: /etc/mysql/mariadb.conf.d/
    environment:
      TZ: "Asia/Kolkata"
      MYSQL_ROOT_PASSWORD: password
      SERVICE_TAGS: dev
      SERVICE_NAME: mysql




Docker File:

FROM php:7.4-fpm

RUN docker-php-ext-install mysqli


共享你的
docker-compose.yml
我已经通过谷歌硬盘与上面提到的链接共享了docker-compose.yml文件