CWollinger / awx

Ansible AWX Docker service with docker-compose

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Ansible AWX Docker service with docker-compose

This repo contains docker-compose files for Ansible AWX. It comes with nginx.

AWX Version of current branch: 15.0.1

Getting started

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

Start docker containers

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

Related projects/used projects:

About

Ansible AWX Docker service with docker-compose


Languages

Language:Python 67.2%Language:Shell 32.8%