Own index for ES

Hello. I need create own index for ES, but i can’t undertand why my config is wrong. I recieve error:

Unable to create file based dynamic config client, use no-op config client instead.",“error”:"failed to decode dynamic config yaml: unmarshal errors:\n line 38: cannot unmarshal !!map into dynamicconfig.constrainedValue

My full config

frontend.enableClientVersionCheck:
  - value: true
    constraints: {}
history.persistenceMaxQPS:
  - value: 3000
    constraints: {}
frontend.persistenceMaxQPS:
  - value: 3000
    constraints: {}
frontend.historyMgrNumConns:
  - value: 10
    constraints: {}
frontend.throttledLogRPS:
  - value: 20
    constraints: {}
history.historyMgrNumConns:
  - value: 50
    constraints: {}
history.defaultActivityRetryPolicy:
  - value:
      InitialIntervalInSeconds: 1
      MaximumIntervalCoefficient: 100.0
      BackoffCoefficient: 2.0
      MaximumAttempts: 0
history.defaultWorkflowRetryPolicy:
  - value:
      InitialIntervalInSeconds: 1
      MaximumIntervalCoefficient: 100.0
      BackoffCoefficient: 2.0
      MaximumAttempts: 0
system.advancedVisibilityWritingMode:
  - value: "on"
    constraints: {}
system.enableReadVisibilityFromES:
  - value: true
    constraints: {}
persistence:
  advancedVisibilityStore: es-visibility
  datastores:
    es-visibility:
      elasticsearch:
        version: "v7"
        url:
          scheme: "http"
          host: "elasticsearch:9200"
        indices:
          visibility: my_own_index_name

Which line is line 38?

advancedVisibilityStore: es-visibility

The section above should go to regular config not dynamic config.

Can I do it vie environment variable?
I tried to set “ES_VIS_INDEX = my_own_index_name” in my docker container but ES index was still the default

Yes, ES_VIS_INDEX should work. How do you set it? The way it works is via dockerize which use environment variables to generates config from template.

So if you set it outside of docker container (command line or docker-compose file) and use default Temporal server docker image, it should be applied.