Advertisement
Guest User

Untitled

a guest
Apr 22nd, 2017
124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.79 KB | None | 0 0
  1. version: '2'
  2.  
  3. services:
  4. web:
  5. build:
  6. context: ./
  7. dockerfile: web.docker
  8. volumes:
  9. - ./:/var/www
  10. ports:
  11. - "8080:80"
  12. links:
  13. - app
  14. app:
  15. build:
  16. context: ./
  17. dockerfile: app.docker
  18. volumes:
  19. - ./:/var/www
  20. links:
  21. - database
  22. database:
  23. image: mysql:5.7
  24. environment:
  25. MYSQL_ROOT_PASSWORD: secret
  26. MYSQL_DATABASE: homestead
  27. ports:
  28. - "33061:3306"
  29.  
  30. FROM nginx:1.10
  31.  
  32. ADD ./vhost.conf /etc/nginx/conf.d/default.conf
  33. WORKDIR /var/www
  34.  
  35. FROM php:7-fpm
  36.  
  37. RUN apt-get update && apt-get install -y libmcrypt-dev mysql-client
  38. && docker-php-ext-install mcrypt pdo_mysql
  39.  
  40. WORKDIR /var/www
  41.  
  42. $ docker exec -it compfixmanager_app_1 bash
  43. root@a42628a029d5:/var/www# php artisan migrate
  44.  
  45.  
  46. [IlluminateDatabaseQueryException]
  47. SQLSTATE[HY000] [2002] Connection refused (SQL: select * from information_schema.t
  48. ables where table_schema = homestead and table_name = migrations)
  49.  
  50.  
  51.  
  52. [DoctrineDBALDriverPDOException]
  53. SQLSTATE[HY000] [2002] Connection refused
  54.  
  55.  
  56.  
  57. [PDOException]
  58. SQLSTATE[HY000] [2002] Connection refused
  59.  
  60. APP_ENV=local
  61. APP_KEY=base64:XT/VwqoBB5yrjIShBMV7W4FRkkZvyyV9Y2oj9aW3yos=
  62. APP_DEBUG=true
  63. APP_LOG_LEVEL=debug
  64. APP_URL=http://localhost
  65.  
  66. DB_CONNECTION=mysql
  67. DB_HOST=127.0.0.1
  68. DB_PORT=3306
  69. DB_DATABASE=homestead
  70. DB_USERNAME=root
  71. DB_PASSWORD=secret
  72.  
  73. BROADCAST_DRIVER=log
  74. CACHE_DRIVER=file
  75. SESSION_DRIVER=file
  76. QUEUE_DRIVER=sync
  77.  
  78. REDIS_HOST=127.0.0.1
  79. REDIS_PASSWORD=null
  80. REDIS_PORT=6379
  81.  
  82. MAIL_DRIVER=smtp
  83. MAIL_HOST=smtp.mailtrap.io
  84. MAIL_PORT=2525
  85. MAIL_USERNAME=null
  86. MAIL_PASSWORD=null
  87. MAIL_ENCRYPTION=null
  88.  
  89. PUSHER_APP_ID=
  90. PUSHER_APP_KEY=
  91. PUSHER_APP_SECRET=
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement