fix permission and trouble on mysql docker
This commit is contained in:
@@ -12,34 +12,32 @@ DB_CONNECTION=mysql
|
||||
DB_HOST=db
|
||||
DB_PORT=3306
|
||||
DB_DATABASE=ckb_db
|
||||
DB_USERNAME=laravel
|
||||
DB_PASSWORD=password
|
||||
DB_ROOT_PASSWORD=root
|
||||
DB_USERNAME=root
|
||||
DB_PASSWORD=root
|
||||
|
||||
# Redis Configuration for Docker
|
||||
REDIS_HOST=redis
|
||||
REDIS_PASSWORD=null
|
||||
REDIS_PORT=6379
|
||||
|
||||
# Cache Configuration
|
||||
BROADCAST_DRIVER=log
|
||||
CACHE_DRIVER=redis
|
||||
QUEUE_CONNECTION=redis
|
||||
FILESYSTEM_DRIVER=local
|
||||
QUEUE_CONNECTION=sync
|
||||
SESSION_DRIVER=redis
|
||||
SESSION_LIFETIME=120
|
||||
|
||||
# Mail Configuration (using MailHog for development)
|
||||
# Mail Configuration for Docker (MailHog)
|
||||
MAIL_MAILER=smtp
|
||||
MAIL_HOST=mailhog
|
||||
MAIL_PORT=1025
|
||||
MAIL_USERNAME=null
|
||||
MAIL_PASSWORD=null
|
||||
MAIL_ENCRYPTION=null
|
||||
MAIL_FROM_ADDRESS=noreply@ckb.local
|
||||
MAIL_FROM_ADDRESS=test@ckb.local
|
||||
MAIL_FROM_NAME="${APP_NAME}"
|
||||
|
||||
# Broadcasting
|
||||
BROADCAST_DRIVER=log
|
||||
|
||||
# AWS (if needed)
|
||||
# AWS (if needed for production)
|
||||
AWS_ACCESS_KEY_ID=
|
||||
AWS_SECRET_ACCESS_KEY=
|
||||
AWS_DEFAULT_REGION=us-east-1
|
||||
@@ -50,7 +48,13 @@ AWS_USE_PATH_STYLE_ENDPOINT=false
|
||||
PUSHER_APP_ID=
|
||||
PUSHER_APP_KEY=
|
||||
PUSHER_APP_SECRET=
|
||||
PUSHER_HOST=
|
||||
PUSHER_PORT=443
|
||||
PUSHER_SCHEME=https
|
||||
PUSHER_APP_CLUSTER=mt1
|
||||
|
||||
MIX_PUSHER_APP_KEY="${PUSHER_APP_KEY}"
|
||||
MIX_PUSHER_APP_CLUSTER="${PUSHER_APP_CLUSTER}"
|
||||
VITE_PUSHER_APP_KEY="${PUSHER_APP_KEY}"
|
||||
VITE_PUSHER_HOST="${PUSHER_HOST}"
|
||||
VITE_PUSHER_PORT="${PUSHER_PORT}"
|
||||
VITE_PUSHER_SCHEME="${PUSHER_SCHEME}"
|
||||
VITE_PUSHER_APP_CLUSTER="${PUSHER_APP_CLUSTER}"
|
||||
@@ -4,27 +4,27 @@ default-authentication-plugin = mysql_native_password
|
||||
character-set-server = utf8mb4
|
||||
collation-server = utf8mb4_unicode_ci
|
||||
|
||||
# Connection settings
|
||||
max_connections = 200
|
||||
connect_timeout = 60
|
||||
wait_timeout = 600
|
||||
interactive_timeout = 600
|
||||
|
||||
# Buffer settings
|
||||
# Performance settings
|
||||
innodb_buffer_pool_size = 256M
|
||||
innodb_log_file_size = 64M
|
||||
innodb_log_buffer_size = 16M
|
||||
innodb_flush_log_at_trx_commit = 1
|
||||
innodb_flush_method = O_DIRECT
|
||||
|
||||
# Query cache
|
||||
query_cache_type = 1
|
||||
query_cache_size = 32M
|
||||
query_cache_limit = 2M
|
||||
# Connection settings
|
||||
max_connections = 200
|
||||
max_allowed_packet = 16M
|
||||
|
||||
# Logging
|
||||
general_log = 0
|
||||
slow_query_log = 1
|
||||
slow_query_log_file = /var/log/mysql/slow.log
|
||||
long_query_time = 2
|
||||
|
||||
# Security
|
||||
local_infile = 0
|
||||
sql_mode = STRICT_TRANS_TABLES,NO_ZERO_DATE,NO_ZERO_IN_DATE,ERROR_FOR_DIVISION_BY_ZERO
|
||||
|
||||
[mysql]
|
||||
default-character-set = utf8mb4
|
||||
|
||||
[client]
|
||||
default-character-set = utf8mb4
|
||||
@@ -1,21 +1,16 @@
|
||||
; PHP Configuration for CKB Laravel App
|
||||
; PHP Configuration for Laravel
|
||||
|
||||
; Maximum execution time
|
||||
max_execution_time = 300
|
||||
|
||||
; Maximum input time
|
||||
max_input_time = 300
|
||||
|
||||
; Memory limit
|
||||
; General settings
|
||||
memory_limit = 512M
|
||||
|
||||
; Upload settings
|
||||
upload_max_filesize = 100M
|
||||
max_execution_time = 300
|
||||
max_input_time = 300
|
||||
post_max_size = 100M
|
||||
upload_max_filesize = 100M
|
||||
max_file_uploads = 20
|
||||
|
||||
; Error reporting
|
||||
; Error reporting (will be overridden by environment)
|
||||
display_errors = Off
|
||||
display_startup_errors = Off
|
||||
log_errors = On
|
||||
error_log = /var/log/php_errors.log
|
||||
|
||||
@@ -23,14 +18,37 @@ error_log = /var/log/php_errors.log
|
||||
date.timezone = Asia/Jakarta
|
||||
|
||||
; Session settings
|
||||
session.save_handler = files
|
||||
session.save_path = /var/www/html/storage/framework/sessions
|
||||
session.gc_maxlifetime = 1440
|
||||
session.cookie_lifetime = 0
|
||||
session.cookie_secure = Off
|
||||
session.cookie_httponly = On
|
||||
|
||||
; OPcache settings
|
||||
; OPcache settings (for production performance)
|
||||
opcache.enable = 1
|
||||
opcache.enable_cli = 0
|
||||
opcache.memory_consumption = 128
|
||||
opcache.interned_strings_buffer = 8
|
||||
opcache.max_accelerated_files = 4000
|
||||
opcache.revalidate_freq = 2
|
||||
opcache.fast_shutdown = 1
|
||||
opcache.enable_cli = 1
|
||||
|
||||
; Security settings
|
||||
expose_php = Off
|
||||
allow_url_fopen = On
|
||||
allow_url_include = Off
|
||||
|
||||
; File uploads
|
||||
file_uploads = On
|
||||
upload_tmp_dir = /tmp
|
||||
|
||||
; MySQL settings
|
||||
mysqli.default_port = 3306
|
||||
mysqli.default_socket =
|
||||
mysqli.default_host =
|
||||
mysqli.default_user =
|
||||
mysqli.default_pw =
|
||||
|
||||
; Redis extension
|
||||
extension = redis.so
|
||||
Reference in New Issue
Block a user