diff --git a/.env.docker b/.env.docker index bb7d1c4..bcc56d1 100644 --- a/.env.docker +++ b/.env.docker @@ -1,86 +1,65 @@ -# ======================================== -# Abbauf Kasir - Docker Environment Configuration -# ======================================== -# Copy file ini ke .env sebelum deployment -# Ganti semua placeholder dengan nilai yang sesuai - -# Application APP_NAME=Abbauf-Kasir -APP_ENV=production -APP_KEY= # Generate dengan: php artisan key:generate -APP_DEBUG=false -APP_URL=http://localhost # Ganti dengan domain production +APP_ENV=local +APP_KEY= +APP_DEBUG=true +APP_URL=http://localhost -APP_LOCALE=id +APP_LOCALE=en APP_FALLBACK_LOCALE=en -APP_FAKER_LOCALE=id_ID +APP_FAKER_LOCALE=en_US APP_MAINTENANCE_DRIVER=file +# APP_MAINTENANCE_STORE=database + PHP_CLI_SERVER_WORKERS=4 BCRYPT_ROUNDS=12 -# Logging LOG_CHANNEL=stack -LOG_STACK=daily +LOG_STACK=single LOG_DEPRECATIONS_CHANNEL=null -LOG_LEVEL=error +LOG_LEVEL=debug -# Database Configuration -DB_CONNECTION=mysql -DB_HOST=mysql # Nama service di docker-compose -DB_PORT=3306 -DB_DATABASE=kasir_db # Nama database -DB_USERNAME=kasir_user # Username database -DB_PASSWORD=strong_password_here # GANTI dengan password kuat! +DB_CONNECTION=sqlite +# DB_HOST=127.0.0.1 +# DB_PORT=3306 +# DB_DATABASE=laravel +# DB_USERNAME=root +# DB_PASSWORD= -# MySQL Root Password (untuk docker-compose) -MYSQL_ROOT_PASSWORD=root_strong_password # GANTI dengan password root yang kuat! - -# Cache & Session -CACHE_STORE=redis -SESSION_DRIVER=redis +SESSION_DRIVER=database SESSION_LIFETIME=120 SESSION_ENCRYPT=false SESSION_PATH=/ SESSION_DOMAIN=null -# Redis Configuration +BROADCAST_CONNECTION=log +FILESYSTEM_DISK=local +QUEUE_CONNECTION=database + +CACHE_STORE=database +# CACHE_PREFIX= + +MEMCACHED_HOST=127.0.0.1 + REDIS_CLIENT=phpredis -REDIS_HOST=redis +REDIS_HOST=127.0.0.1 REDIS_PASSWORD=null REDIS_PORT=6379 -# Queue -QUEUE_CONNECTION=redis - -# Broadcasting -BROADCAST_CONNECTION=log - -# Filesystem -FILESYSTEM_DISK=local - -# Mail Configuration (opsional) MAIL_MAILER=log MAIL_SCHEME=null MAIL_HOST=127.0.0.1 MAIL_PORT=2525 MAIL_USERNAME=null MAIL_PASSWORD=null -MAIL_FROM_ADDRESS="noreply@abbauf-kasir.local" +MAIL_FROM_ADDRESS="hello@example.com" MAIL_FROM_NAME="${APP_NAME}" -# AWS (jika menggunakan S3 untuk storage) AWS_ACCESS_KEY_ID= AWS_SECRET_ACCESS_KEY= AWS_DEFAULT_REGION=us-east-1 AWS_BUCKET= AWS_USE_PATH_STYLE_ENDPOINT=false -# Ports (untuk docker-compose) -APP_PORT=80 # Port untuk akses aplikasi -# DB_PORT=3306 # Uncomment jika ingin expose DB port -# REDIS_PORT=6379 # Uncomment jika ingin expose Redis port - -# Vite -VITE_APP_NAME="${APP_NAME}" +VITE_APP_NAME="${APP_NAME}" \ No newline at end of file diff --git a/docker-compose.yml b/docker-compose.yml index 0f4b723..ae2b302 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -13,7 +13,7 @@ services: working_dir: /var/www/html volumes: # Mount storage untuk uploads dan logs (persistent) - - ./storage:/var/www/html/storage + - ./storage/app/public:/var/www/html/storage # Mount public build assets (read-only) - ./public/build:/var/www/html/public/build:ro environment: @@ -64,11 +64,11 @@ services: - "${APP_PORT:-80}:80" volumes: # Nginx configuration - - ./nginx.conf:/etc/nginx/conf.d/default.conf:ro + - ./nginx.conf:/etc/nginx/conf.d/default.conf # Laravel public directory (untuk static assets) - - ./public:/var/www/html/public:ro + - ./public:/var/www/html/public # Storage symlink untuk file uploads - - ./storage/app/public:/var/www/html/public/storage:ro + - ./storage/app/public:/var/www/html/public/storage depends_on: - laravel networks: