Tune primary compose for Coolify rebuild

Keep the existing docker-compose.yml suitable for Coolify by using production PHP error defaults and the legacy-compatible MySQL SQL mode.
This commit is contained in:
Power BI Dev
2026-05-03 18:54:19 +07:00
parent dab8ea396b
commit e8ce31c216

View File

@@ -22,7 +22,7 @@ services:
DB_BIO: ${DB_BIO:-spota_spotadb} DB_BIO: ${DB_BIO:-spota_spotadb}
DB_DOSEN: ${DB_DOSEN:-spota_spotadb} DB_DOSEN: ${DB_DOSEN:-spota_spotadb}
SERVICE_DB_NAME: ${SERVICE_DB_NAME:-spota_spotadb} SERVICE_DB_NAME: ${SERVICE_DB_NAME:-spota_spotadb}
PHP_DISPLAY_ERRORS: ${PHP_DISPLAY_ERRORS:-1} PHP_DISPLAY_ERRORS: ${PHP_DISPLAY_ERRORS:-0}
FILES_STORAGE_PATH: ${FILES_STORAGE_PATH:-/var/www/html/storage/app/files} FILES_STORAGE_PATH: ${FILES_STORAGE_PATH:-/var/www/html/storage/app/files}
volumes: volumes:
- spota_storage:/var/www/html/storage - spota_storage:/var/www/html/storage
@@ -36,7 +36,7 @@ services:
dockerfile: docker/mysql/Dockerfile dockerfile: docker/mysql/Dockerfile
container_name: spota-db container_name: spota-db
restart: unless-stopped restart: unless-stopped
command: --default-authentication-plugin=mysql_native_password --character-set-server=latin1 --collation-server=latin1_swedish_ci command: --default-authentication-plugin=mysql_native_password --character-set-server=latin1 --collation-server=latin1_swedish_ci --sql-mode=NO_ENGINE_SUBSTITUTION
environment: environment:
MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD:-root_password} MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD:-root_password}
MYSQL_USER: ${DB_USER:-spota_user} MYSQL_USER: ${DB_USER:-spota_user}