Config: Set skip migrations in defaults.ini + override when running frontend service locally (#114007)

fs: skip migrations locally + add to defaults.ini
This commit is contained in:
Ashley Harrison
2025-11-18 09:49:26 +00:00
committed by GitHub
parent db0b35f6df
commit 9321ca2019
2 changed files with 8 additions and 0 deletions
+6
View File
@@ -218,6 +218,12 @@ delete_auto_gen_ids = false
# Improves startup performance for instances with large numbers of annotations who do not plan to downgrade Grafana.
skip_dashboard_uid_migration_on_startup = false
# Set to true to skip all database migrations on startup. Should be used in conjunction with "ensure_default_org_and_user".
skip_migrations = false
# Set to false to skip ensuring the default organization and user on startup.
ensure_default_org_and_user = true
#################################### Cache server #############################
[remote_cache]
# Either "redis", "memcached" or "database" default is "database"
@@ -65,6 +65,8 @@ services:
- 'alloy.logs=true'
environment:
OTEL_BSP_SCHEDULE_DELAY: 500
GF_DATABASE_SKIP_MIGRATIONS: true
GF_DATABASE_ENSURE_DEFAULT_ORG_AND_USER: false
GF_DEFAULT_APP_MODE: development
GF_DEFAULT_TARGET: frontend-server
GF_SECURITY_CONTENT_SECURITY_POLICY: false