Hey guys I am currently getting an error `level=fa...
# talk-kratos
h
Hey guys I am currently getting an error
level=fatal msg=Unable to instantiate configuration. audience=application error=map[message:open /etc/config/kratos/kratos.yml: no such file or directory] service_name=Ory Kratos service_version=v0.10.1
, this error happens very randomly but causes me issues when it comes up if anyone could tell me what is wrong that would be great thank you!
Copy code
version: '3.7'

services:
  postgres-kratos:
    image: postgres:9.6
    environment:
      - POSTGRES_USER=kratos
      - POSTGRES_PASSWORD=secret
      - POSTGRES_DB=kratos

  kratos-migrate:
    image: oryd/kratos:v0.10.1
    links:
      - postgres-kratos:postgres-kratos
    environment:
      - DSN=<postgres://kratos:secret@postgres-kratos:5432/kratos?sslmode=disable&max_conns=20&max_idle_conns=4>
    volumes:
      - type: bind
        source: ./Ory/kratos
        target: /etc/config/kratos
    command: -c /etc/config/kratos/kratos.yml migrate sql -e --yes

  kratos:
    image: oryd/kratos:v0.10.1
    links:
      - postgres-kratos:postgres-kratos
    environment:
      - DSN=<postgres://kratos:secret@postgres-kratos:5432/kratos?sslmode=disable&max_conns=20&max_idle_conns=4>
    ports:
      - '127.0.0.1:4433:4433'
      - '127.0.0.1:4434:4434'
    volumes:
      - type: bind
        source: ./Ory/kratos
        target: /etc/config/kratos
    command: serve -c /etc/config/kratos/kratos.yml --dev --watch-courier

  kratos-selfservice-ui-node:
    image: oryd/kratos-selfservice-ui-node:latest
    environment:
      - KRATOS_PUBLIC_URL=<http://kratos:4433/>
      - KRATOS_BROWSER_URL=<http://127.0.0.1:4433/>
    ports:
      - '127.0.0.1:4455:3000'
    restart: on-failure

  mailslurper:
    image: oryd/mailslurper:latest-smtps
    ports:
      - '127.0.0.1:4436:4436'
      - '127.0.0.1:4437:4437'
This is a docker issue, not to sure why this happens but if I restart docker everything works fine so nothing is wrong with my configuration
s
it could be docker or your host system where the original file is, if you would e.g. move the config file in
Ory/kratos
you would get that error as well
h
I'm not sure I never moved the file. It gets fixed when restarting docker, just not sure what causes the issue, but now I know how to fix it. 👍