Guest User

Untitled

a guest
Dec 21st, 2018
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.77 KB | None | 0 0
  1. version: '3'
  2. services:
  3. apache:
  4. container_name: easy_eat_apache
  5. image: webdevops/apache:ubuntu-16.04
  6. environment:
  7. WEB_DOCUMENT_ROOT: /var/www/public
  8. WEB_ALIAS_DOMAIN: easy-eat.localhost
  9. WEB_PHP_SOCKET: php-fpm:9000
  10. volumes: # Only shared dirs to apache (to be served)
  11. - ./public:/var/www/public:cached
  12. - ./storage:/var/www/storage:cached
  13. networks:
  14. - easy-eat-network
  15. ports:
  16. - "80:80"
  17. - "443:443"
  18. php-fpm:
  19. container_name: easy_eat_php
  20. image: jguyomard/laravel-php:7.2
  21. volumes:
  22. - ./:/var/www/
  23. - ./ci:/var/www/ci:cached
  24. - ./vendor:/var/www/vendor:delegated
  25. - ./storage:/var/www/storage:delegated
  26. - ./node_modules:/var/www/node_modules:cached
  27. - ~/.ssh:/root/.ssh:cached
  28. - ~/.composer/cache:/root/.composer/cache:delegated
  29. networks:
  30. - easy-eat-network
  31. db:
  32. container_name: easy_eat_db
  33. image: mariadb:10.2
  34. environment:
  35. MYSQL_ROOT_PASSWORD: root
  36. MYSQL_DATABASE: easy_eat
  37. MYSQL_USER: easy_eat
  38. MYSQL_PASSWORD: secret
  39. volumes:
  40. - db_data:/var/lib/mysql
  41. networks:
  42. - easy-eat-network
  43. ports:
  44. - "33060:3306"
  45. networks:
  46. easy-eat-network:
  47. driver: "bridge"
  48. volumes:
  49. db_data:
  50. driver: "local"
  51.  
  52. docker-compose up --build -d
  53.  
  54. DB_CONNECTION=mysql
  55. DB_HOST=db
  56. DB_PORT=3306
  57. DB_DATABASE=easy_eat
  58. DB_USERNAME=easy_eat
  59. DB_PASSWORD=secret
  60.  
  61. docker-compose exec php-fpm php artisan migrate:fresh --seed
  62.  
  63. IlluminateDatabaseQueryException : SQLSTATE[HY000] [1045] Access denied for user 'easy_eat'@'172.25.0.4' (using password: YES) (SQL: SHOW FULL TABLES WHERE table_type = 'BASE TABLE')
  64.  
  65. at /var/www/vendor/laravel/framework/src/Illuminate/Database/Connection.php:664
  66. 660| // If an exception occurs when attempting to run a query, we'll format the error
  67. 661| // message to include the bindings with SQL, which will make this exception a
  68. 662| // lot more helpful to the developer instead of just the database's errors.
  69. 663| catch (Exception $e) {
  70. > 664| throw new QueryException(
  71. 665| $query, $this->prepareBindings($bindings), $e
  72. 666| );
  73. 667| }
  74. 668|
  75.  
  76. Exception trace:
  77.  
  78. 1 PDOException::("SQLSTATE[HY000] [1045] Access denied for user 'easy_eat'@'172.25.0.4' (using password: YES)")
  79. /var/www/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:70
  80.  
  81. 2 PDO::__construct("mysql:host=db;port=3306;dbname=easy_eat", "easy_eat", "secret", [])
  82. /var/www/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:70
Add Comment
Please, Sign In to add comment