-
Notifications
You must be signed in to change notification settings - Fork 24
How to access AWX databases when in a Docker installation #7
Comments
Myself, I hosted AWX on a Kubernetes/Openshift cluster, en configured a port forward via the openshift tool to the host I run awx-migratre on. This matches the default settings
In a pure docker environment, you'd need to export/publish those database ports to the local host running docker, and run the script there. Perhaps as simple as restarting those containers with an extra -p options - see man docker, the
|
If you're using the Ansible playbooks that the AWX project supplies you with, you can also publish those ports by adjusting the In versions 2.1.0 and 3.0.1 (and probably other earlier versions as well) - Edit the
In version 4.0.0 and other later versions (I've only been playing with 4.0.0 lately) - Edit the
Then re-run the playbook to provision the changes to your Docker containers:
Once you've done that, you should have published the specified port on the container to the specified port on the host, and the script ought to be able to communicate with the Postgres container then. |
I think @se7entyse7en's blog post about using socat to connect to a container with an unpublished port, when a restart is and not an option is brilliant. |
I have AWX installed via Docker. So there's a separate postgres container. Being sort of unfamiliar with Docker and Postgres, how do I configure awx-migrate-wrapper to connect to the postgres container?
The text was updated successfully, but these errors were encountered: