Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Portfolio docker-compose configuration file
- version: '2'
- services:
- laravel:
- build: docker/
- command: /bin/bash /usr/local/bin/entrypoint.sh
- ports:
- - "81:80"
- volumes:
- - ~/Documents/Projects/Portfolio:/var/www/html
- environment:
- - LARAVEL_DB_HOST=127.0.0.1:3306
- - LARAVEL_DB_PASSWORD=2ws3ed
- APP_ENV=local
- APP_KEY=base64:b... # truncated
- APP_DEBUG=true
- APP_LOG_LEVEL=debug
- APP_URL=http://localhost:81
- APP_PORT=81
- APP_MOUNT_PATH=~/Documents/Projects/Portfolio
- DB_CONNECTION=mysql
- DB_DATA_PATH=/tmp/docker_mysql
- DB_LOG_FILE=./log/mysql
- DB_HOST=127.0.0.1
- DB_PORT=3306
- DB_DATABASE=portfolio
- DB_USERNAME=root
- DB_ROOT_PASSWORD=pas... # truncated
- DB_PASSWORD=pas... # truncated
- 'mysql' => [
- 'driver' => 'mysql',
- 'host' => env('DB_HOST', 'localhost'),
- 'port' => env('DB_PORT', '3306'),
- 'database' => env('DB_DATABASE', 'forge'),
- 'username' => env('DB_USERNAME', 'forge'),
- 'password' => env('DB_PASSWORD', ''),
- 'charset' => 'utf8',
- 'collation' => 'utf8_unicode_ci',
- 'prefix' => '',
- 'strict' => false,
- 'engine' => null,
- // 'unix_socket' => '/tmp/mysql.sock' # tried with/without this
- ],
- [mysqld]
- # Remove leading # and set to the amount of RAM for the most important data
- # cache in MySQL. Start at 70% of total RAM for dedicated server, else 10%.
- # innodb_buffer_pool_size = 128M
- #bind-address = 0.0.0.0
- # Remove leading # to turn on a very important data integrity option: logging
- # changes to the binary log between backups.
- # log_bin
- # These are commonly set, remove the # and set as required.
- # basedir = .....
- # datadir = .....
- # port = .....
- # server_id = .....
- # socket = .....
- # Remove leading # to set options mainly useful for reporting servers.
- # The server defaults are faster for transactions and fast SELECTs.
- # Adjust sizes as needed, experiment to find the optimal values.
- # join_buffer_size = 128M
- # sort_buffer_size = 2M
- # read_rnd_buffer_size = 2M
- sql_mode=NO_ENGINE_SUBSTITUTION,STRICT_TRANS_TABLES
- $ ls /tmp/mysql.sock
- /tmp/mysql.sock
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement