Compare commits

..

No commits in common. "c8559d63dfc02b16cda275b873815e44dd3e9023" and "43e058fe6f52d9eb708219e304f117ec1c3f5012" have entirely different histories.

3 changed files with 16 additions and 23 deletions

View File

@ -1,12 +1,12 @@
APP_NAME=KasirTMJC
APP_NAME=Abbauf-Kasir
APP_ENV=local
APP_KEY=
APP_DEBUG=true
APP_URL=http://localhost
APP_URL=http://localhost:8000
APP_LOCALE=id
APP_FALLBACK_LOCALE=id
APP_FAKER_LOCALE=id_ID
APP_LOCALE=en
APP_FALLBACK_LOCALE=en
APP_FAKER_LOCALE=en_US
APP_MAINTENANCE_DRIVER=file
# APP_MAINTENANCE_STORE=database
@ -20,15 +20,12 @@ LOG_STACK=single
LOG_DEPRECATIONS_CHANNEL=null
LOG_LEVEL=debug
DB_CONNECTION=mysql
DB_HOST=mysql
DB_PORT=3306
DB_DATABASE=kasir_db
DB_USERNAME=kasir_user
DB_PASSWORD=kasir_password
# MySQL Root Password (untuk Docker)
MYSQL_ROOT_PASSWORD=root_password
DB_CONNECTION=sqlite
# DB_HOST=127.0.0.1
# DB_PORT=3306
# DB_DATABASE=laravel
# DB_USERNAME=root
# DB_PASSWORD=
SESSION_DRIVER=database
SESSION_LIFETIME=120
@ -46,7 +43,7 @@ CACHE_STORE=database
MEMCACHED_HOST=127.0.0.1
REDIS_CLIENT=phpredis
REDIS_HOST=redis
REDIS_HOST=127.0.0.1
REDIS_PASSWORD=null
REDIS_PORT=6379

View File

@ -24,13 +24,11 @@ COPY . .
COPY --from=node_builder /app/public/build /var/www/html/public/build
RUN composer install --no-dev --optimize-autoloader
RUN php artisan storage:link || true
RUN php artisan config:cache && php artisan route:cache && php artisan view:cache # Optimasi cache untuk performa laporan/transaksi
# Set permission dan user non-root
RUN chown -R www-data:www-data /var/www/html \
&& chmod -R 755 /var/www/html/storage \
&& chmod -R 755 /var/www/html/bootstrap/cache
RUN chown -R www-data:www-data /var/www/html
USER www-data
EXPOSE 9000
CMD ["php-fpm"]

View File

@ -5,7 +5,7 @@ services:
dockerfile: Dockerfile
container_name: laravel_app_prod
volumes:
- storage_data:/var/www/html/storage
- ./storage:/var/www/html/storage
ports:
- "9000"
depends_on:
@ -28,8 +28,7 @@ services:
- "80:80"
volumes:
- ./nginx.conf:/etc/nginx/conf.d/default.conf:ro
volumes_from:
- laravel:ro
- ./storage:/var/www/html/storage:ro
depends_on:
- laravel
@ -55,4 +54,3 @@ services:
volumes:
mysql_data:
storage_data: