Deploy Laravel rebuild via Coolify

Point Docker and Coolify compose to the Laravel rebuild app so mahasiswa, dosen, and admin flows are served from the new Laravel public entrypoint.
This commit is contained in:
Power BI Dev
2026-05-03 18:50:29 +07:00
parent 89ce9d30a7
commit dab8ea396b
107 changed files with 17544 additions and 20 deletions

View File

@@ -2,13 +2,17 @@ services:
app:
build:
context: .
dockerfile: Dockerfile.coolify
dockerfile: Dockerfile.rebuild
restart: unless-stopped
environment:
APP_URL: ${APP_URL}
APP_URL: ${APP_URL:-http://localhost}
APP_ENV: ${APP_ENV:-production}
APP_DEBUG: ${APP_DEBUG:-false}
APP_KEY: ${APP_KEY:-}
DB_HOST: db
DB_USER: ${DB_USER}
DB_PASSWORD: ${DB_PASSWORD}
DB_PORT: 3306
DB_USER: ${DB_USER:-spota_user}
DB_PASSWORD: ${DB_PASSWORD:-spota_password}
DB_NAME: ${DB_NAME:-spota_spotadb}
DB_SPOTA: ${DB_SPOTA:-spota_spotadb}
DB_KONSULTASI: ${DB_KONSULTASI:-spota_konsultasi}
@@ -16,10 +20,9 @@ services:
DB_DOSEN: ${DB_DOSEN:-spota_spotadb}
SERVICE_DB_NAME: ${SERVICE_DB_NAME:-spota_spotadb}
PHP_DISPLAY_ERRORS: ${PHP_DISPLAY_ERRORS:-0}
FILES_STORAGE_PATH: ${FILES_STORAGE_PATH:-/var/www/html/files}
FILES_STORAGE_PATH: ${FILES_STORAGE_PATH:-/var/www/html/storage/app/files}
volumes:
- spota_files:/var/www/html/files
- spota_img:/var/www/html/img
- spota_storage:/var/www/html/storage
depends_on:
db:
condition: service_healthy
@@ -31,9 +34,9 @@ services:
restart: unless-stopped
command: --default-authentication-plugin=mysql_native_password --character-set-server=latin1 --collation-server=latin1_swedish_ci --sql-mode=NO_ENGINE_SUBSTITUTION
environment:
MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD}
MYSQL_USER: ${DB_USER}
MYSQL_PASSWORD: ${DB_PASSWORD}
MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD:-root_password}
MYSQL_USER: ${DB_USER:-spota_user}
MYSQL_PASSWORD: ${DB_PASSWORD:-spota_password}
MYSQL_DATABASE: ${DB_NAME:-spota_spotadb}
volumes:
- spota_db_data:/var/lib/mysql
@@ -45,5 +48,4 @@ services:
volumes:
spota_db_data:
spota_files:
spota_img:
spota_storage: