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

View File

@ -24,13 +24,11 @@ COPY . .
COPY --from=node_builder /app/public/build /var/www/html/public/build COPY --from=node_builder /app/public/build /var/www/html/public/build
RUN composer install --no-dev --optimize-autoloader 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 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 # Set permission dan user non-root
RUN chown -R www-data:www-data /var/www/html \ RUN chown -R www-data:www-data /var/www/html
&& chmod -R 755 /var/www/html/storage \ USER www-data
&& chmod -R 755 /var/www/html/bootstrap/cache
EXPOSE 9000 EXPOSE 9000
CMD ["php-fpm"] CMD ["php-fpm"]

View File

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