This repo contains docker-compose files for Ansible AWX. It comes with nginx.
AWX Version of current branch: 15.0.1
Clone the repo to your executing environment.
git clone https://github.com/CWollinger/awx.git
Edit the credentials for AWX and the Postgres database: credentials.py environment.sh SECRET_KEY
First create the services and volumes:
docker-compose up --no-start
Change redis socket permissions:
sudo chmod 777 /var/lib/docker/volumes/awx_redis-socket/_data/
Copy your nginx config file. Make here changes if you want to redirect SSL/https:
sudo cp nginx/default.conf /var/lib/docker/volumes/awx_nginx_config/_data/conf.d/default.conf
Copy the AWX config files into the volumes:
sudo mkdir /var/lib/docker/volumes/awx_awx-config/_data/conf.d
sudo cp awx-web/SECRET_KEY /var/lib/docker/volumes/awx_awx-config/_data/
sudo cp awx-web/environment.sh /var/lib/docker/volumes/awx_awx-config/_data/conf.d/
sudo cp awx-web/credentials.py /var/lib/docker/volumes/awx_awx-config/_data/conf.d/
sudo cp awx-web/nginx.conf /var/lib/docker/volumes/awx_awx-nginx/_data/
Start AWX:
docker-compose up -d
Login via http://localhost with user and password stored in environment.sh.
Related projects/used projects: