Guest User

Untitled

a guest
Jan 12th, 2019
151
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.72 KB | None | 0 0
  1. php artisan migrate
  2.  
  3. IlluminateDatabaseQueryException : could not find driver
  4.  
  5. FROM php:7-fpm
  6.  
  7. RUN apt-get update -y && apt-get install -y openssl zip unzip git libpq-dev
  8. RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
  9. RUN docker-php-ext-install pdo mbstring
  10. RUN apt-get install --no-install-recommends -y libpq-dev
  11. RUN docker-php-ext-install pdo pgsql pdo_pgsql
  12. COPY php.ini /usr/local/etc/php
  13. WORKDIR /var/www
  14.  
  15. extension=pdo_pgsql
  16. extension=pgsql
  17. Вывод phpinfo()
  18. 5c37728399864061523546.png
  19.  
  20.  
  21.  
  22. 'default' => env('DB_CONNECTION', 'pgsql'),
  23.  
  24. DB_CONNECTION=pgsql
  25. DB_HOST=192.168.192.2
  26. DB_PORT=5432
  27. DB_DATABASE=dbname
  28. DB_USERNAME=dbuser
  29. DB_PASSWORD=dbpassword
Add Comment
Please, Sign In to add comment