Advertisement
Guest User

Untitled

a guest
Sep 11th, 2016
384
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.07 KB | None | 0 0
  1. # Portfolio docker-compose configuration file
  2. version: '2'
  3. services:
  4. laravel:
  5. build: docker/
  6. command: /bin/bash /usr/local/bin/entrypoint.sh
  7. ports:
  8. - "81:80"
  9. volumes:
  10. - ~/Documents/Projects/Portfolio:/var/www/html
  11. environment:
  12. - LARAVEL_DB_HOST=127.0.0.1:3306
  13. - LARAVEL_DB_PASSWORD=2ws3ed
  14.  
  15. APP_ENV=local
  16. APP_KEY=base64:b... # truncated
  17. APP_DEBUG=true
  18. APP_LOG_LEVEL=debug
  19. APP_URL=http://localhost:81
  20. APP_PORT=81
  21. APP_MOUNT_PATH=~/Documents/Projects/Portfolio
  22. DB_CONNECTION=mysql
  23. DB_DATA_PATH=/tmp/docker_mysql
  24. DB_LOG_FILE=./log/mysql
  25. DB_HOST=127.0.0.1
  26. DB_PORT=3306
  27. DB_DATABASE=portfolio
  28. DB_USERNAME=root
  29. DB_ROOT_PASSWORD=pas... # truncated
  30. DB_PASSWORD=pas... # truncated
  31.  
  32. 'mysql' => [
  33. 'driver' => 'mysql',
  34. 'host' => env('DB_HOST', 'localhost'),
  35. 'port' => env('DB_PORT', '3306'),
  36. 'database' => env('DB_DATABASE', 'forge'),
  37. 'username' => env('DB_USERNAME', 'forge'),
  38. 'password' => env('DB_PASSWORD', ''),
  39. 'charset' => 'utf8',
  40. 'collation' => 'utf8_unicode_ci',
  41. 'prefix' => '',
  42. 'strict' => false,
  43. 'engine' => null,
  44. // 'unix_socket' => '/tmp/mysql.sock' # tried with/without this
  45. ],
  46.  
  47. [mysqld]
  48.  
  49. # Remove leading # and set to the amount of RAM for the most important data
  50. # cache in MySQL. Start at 70% of total RAM for dedicated server, else 10%.
  51. # innodb_buffer_pool_size = 128M
  52.  
  53. #bind-address = 0.0.0.0
  54.  
  55. # Remove leading # to turn on a very important data integrity option: logging
  56. # changes to the binary log between backups.
  57. # log_bin
  58.  
  59. # These are commonly set, remove the # and set as required.
  60. # basedir = .....
  61. # datadir = .....
  62. # port = .....
  63. # server_id = .....
  64. # socket = .....
  65.  
  66. # Remove leading # to set options mainly useful for reporting servers.
  67. # The server defaults are faster for transactions and fast SELECTs.
  68. # Adjust sizes as needed, experiment to find the optimal values.
  69. # join_buffer_size = 128M
  70. # sort_buffer_size = 2M
  71. # read_rnd_buffer_size = 2M
  72.  
  73. sql_mode=NO_ENGINE_SUBSTITUTION,STRICT_TRANS_TABLES
  74.  
  75. $ ls /tmp/mysql.sock
  76. /tmp/mysql.sock
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement