# In ansible awx how to separate db from the docker container

**URL:** <https://forum.ansible.com/t/in-ansible-awx-how-to-separate-db-from-the-docker-container/7222>\
**Category:** Get Help\
**Tags:** docker, awx\
**Created:** [July 11, 2024, 3:18pm UTC](https://forum.ansible.com/t/in-ansible-awx-how-to-separate-db-from-the-docker-container/7222 "2024-07-11T15:18:36Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Krishna\_Koushik](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/krishna_koushik/32/3948_2.png) [@Krishna\_Koushik](https://forum.ansible.com/u/Krishna_Koushik)\
**Post date:** [July 11, 2024, 3:18pm UTC](https://forum.ansible.com/t/in-ansible-awx-how-to-separate-db-from-the-docker-container/7222/1 "2024-07-11T15:18:36Z")

</div>

In ansible awx by default database is running in the container, i do not want to run the db in the docker container, i want to use external db connection. I tried connecting to external db, it is connected and working. When I removed the database related in docker file i got no issues. But when i tried executing the Job Template my Application is getting crashed.

---

<div class="post-metadata">

**Author:** ![mikemorency](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/mikemorency/32/2672_2.png) [@mikemorency](https://forum.ansible.com/u/mikemorency)\
**Post date:** [July 17, 2024, 7:39pm UTC](https://forum.ansible.com/t/in-ansible-awx-how-to-separate-db-from-the-docker-container/7222/2 "2024-07-17T19:39:40Z")

</div>

It depends on how you are deploying AWX. Here is the documentation on how to create database auth secrets when deploying using the operator

> <https://github.com/ansible/awx-operator/blob/devel/docs/user-guide/database-configuration.md>

and you tell awx what the secrets are called in the awx spec, called `awx-demo.yml` in this doc

> <https://github.com/ansible/awx-operator/blob/devel/docs/installation/basic-install.md>
