# Schema for DBless Declarative Config

**URL:** <https://discuss.konghq.com/t/schema-for-dbless-declarative-config/10062>\
**Category:** Questions\
**Created:** [April 15, 2022, 11:52am UTC](https://discuss.konghq.com/t/schema-for-dbless-declarative-config/10062 "2022-04-15T11:52:34Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![shahamit](https://avatars.discourse-cdn.com/v4/letter/s/8797f3/32.png) [@shahamit](https://discuss.konghq.com/u/shahamit)\
**Post date:** [April 15, 2022, 11:52am UTC](https://discuss.konghq.com/t/schema-for-dbless-declarative-config/10062/1 "2022-04-15T11:52:34Z")

</div>

I am deploying kong 2.8 in dbless mode. Where can I find the schema of the yaml file? It would help to understand how to configure kong.

Thanks.

---

<div class="post-metadata">

**Author:** ![fomm](https://avatars.discourse-cdn.com/v4/letter/f/ea666f/32.png) [@fomm](https://discuss.konghq.com/u/fomm)\
**Post date:** [April 15, 2022, 12:59pm UTC](https://discuss.konghq.com/t/schema-for-dbless-declarative-config/10062/2 "2022-04-15T12:59:36Z")

</div>

One tip to get declarative config is to run Kong with DB first, configure whatever you need and then use deck to dump the config out.

---

<div class="post-metadata">

**Author:** ![shahamit](https://avatars.discourse-cdn.com/v4/letter/s/8797f3/32.png) [@shahamit](https://discuss.konghq.com/u/shahamit)\
**Post date:** [April 15, 2022, 1:23pm UTC](https://discuss.konghq.com/t/schema-for-dbless-declarative-config/10062/3 "2022-04-15T13:23:03Z")

</div>

Ok.

1. Do you have a docker-compose file that includes kong with postgres to get quickly started?
2. How do we configure kong when running in db mode? Would we need a ui like konga or do we execute api calls through postman?

Thanks.

---

<div class="post-metadata">

**Author:** ![fomm](https://avatars.discourse-cdn.com/v4/letter/f/ea666f/32.png) [@fomm](https://discuss.konghq.com/u/fomm)\
**Post date:** [April 15, 2022, 1:26pm UTC](https://discuss.konghq.com/t/schema-for-dbless-declarative-config/10062/4 "2022-04-15T13:26:48Z")

</div>

I only use admin api. IMO it is better than any GUI.

As for a quick docker-compose file with postgres, you can get it from this blog post.

> **[Introduction of Different Kong Deployment Methods With Docker](https://tech.aufomm.com/introduction-of-different-kong-deployment-methods-with-docker/#Docker-Compose-file)**
>
> I’ve written several posts about using Kong plugins in the past few months. It is until recently, one of my viewers asked me if I could cover different deployment methods that I realised this could be

---

<div class="post-metadata">

**Author:** ![pradeep](https://avatars.discourse-cdn.com/v4/letter/p/f0a364/32.png) [@pradeep](https://discuss.konghq.com/u/pradeep)\
**Post date:** [May 2, 2022, 7:32am UTC](https://discuss.konghq.com/t/schema-for-dbless-declarative-config/10062/5 "2022-05-02T07:32:24Z")

</div>

This docker-compose worked for me without much hassles.

> **[docker-kong/compose at master · Kong/docker-kong](https://github.com/Kong/docker-kong/tree/master/compose)**
>
> master/compose

Use the “database” profile to install with db.

Hope that helps.
