Loading...

Watch: Run and Stop Ansible AWX in Docker containers - Ansible AWX

How to start and stop the Ansible AWX modern web-UI and API interface and requirements PostgreSQL and Redis in Docker containers.

How to Run and Stop Ansible AWX in Docker container?

I'm going to show you how to start and stop the Ansible AWX in Docker containers.

You can take advantage of the AWX modern web-UI and API interface.

Running in Docker containers is recommended only for experienced users and developers.

I'm Luca Berton and welcome to today's episode of Ansible Pilot.

Links

  • https://github.com/ansible/awx/blob/devel/tools/docker-compose/README.md#run-awx

Playbook

How to Run and Stop Ansible AWX in Docker containers.

This requires Building from scratch Ansible AWX for Docker containers in a previous lesson.

code

Once you have a successful build of Ansible AWX for Docker containers, you can run the AWX container using the following command.

The process is also spinning the requirements of PostgreSQL and Redis containers.

``bash

$ make docker-compose

`

Your session will be attached to the AWX container, and start watching for log messages and events in real-time when the container was launched.

The first time you start the environment, database migrations run in order to build the PostgreSQL initial database schema and data.

By default, six Docker containers are running on your machine: tools_awx_1, tools_postgres_1, tools_redis_1, tools_receptor_hop, tools_receptor_1, tools_receptor_2.

You can verify the containers running in your system using the docker ps command:

``bash

[lberton@ansible awx]$ docker ps

CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES

bce34be76a94 ghcr.io/ansible/awx_devel:HEAD "/entrypoint.sh rece…" 14 hours ago Up 2 minutes 22/tcp, 8013/tcp, 8043/tcp, 8080/tcp tools_receptor_2

c11c7c1114f1 ghcr.io/ansible/awx_devel:HEAD "/entrypoint.sh rece…

Read the full tutorial: Run and Stop Ansible AWX in Docker containers - Ansible AWX