2019-10-23 12:29:57 +02:00
|
|
|
#
|
|
|
|
# https://github.com/ansible/awx/raw/devel/installer/roles/local_docker/templates/docker-compose.yml.j2
|
|
|
|
#
|
|
|
|
|
2019-01-16 13:21:44 +02:00
|
|
|
version: '2'
|
|
|
|
|
|
|
|
services:
|
|
|
|
|
|
|
|
web:
|
|
|
|
image: ansible/awx_web
|
2019-10-23 12:29:57 +02:00
|
|
|
container_name: awx_web
|
2019-01-16 13:21:44 +02:00
|
|
|
hostname: awxweb
|
|
|
|
user: root
|
2019-10-23 12:29:57 +02:00
|
|
|
ports:
|
|
|
|
- "8052:8052"
|
2019-01-16 13:21:44 +02:00
|
|
|
volumes:
|
2019-10-23 12:29:57 +02:00
|
|
|
- ./data/etc/SECRET_KEY:/etc/tower/SECRET_KEY
|
|
|
|
- ./data/etc/environment.sh:/etc/tower/conf.d/environment.sh
|
|
|
|
- ./data/etc/credentials.py:/etc/tower/conf.d/credentials.py
|
2019-01-16 13:21:44 +02:00
|
|
|
- ./data/awx:/var/lib/awx/projects
|
|
|
|
depends_on:
|
|
|
|
- rabbitmq
|
|
|
|
- memcached
|
|
|
|
- postgres
|
|
|
|
restart: unless-stopped
|
|
|
|
|
|
|
|
task:
|
|
|
|
image: ansible/awx_task
|
2019-10-23 12:29:57 +02:00
|
|
|
container_name: awx_task
|
2019-01-16 13:21:44 +02:00
|
|
|
hostname: awx
|
|
|
|
user: root
|
|
|
|
volumes:
|
2019-10-23 12:29:57 +02:00
|
|
|
- ./data/etc/SECRET_KEY:/etc/tower/SECRET_KEY
|
|
|
|
- ./data/etc/environment.sh:/etc/tower/conf.d/environment.sh
|
|
|
|
- ./data/etc/credentials.py:/etc/tower/conf.d/credentials.py
|
2019-01-16 13:21:44 +02:00
|
|
|
- ./data/awx:/var/lib/awx/projects
|
|
|
|
depends_on:
|
|
|
|
- rabbitmq
|
|
|
|
- memcached
|
|
|
|
- web
|
|
|
|
- postgres
|
|
|
|
restart: unless-stopped
|
|
|
|
|
|
|
|
rabbitmq:
|
|
|
|
image: ansible/awx_rabbitmq
|
2019-10-23 12:29:57 +02:00
|
|
|
container_name: awx_rabbitmq
|
2019-01-16 13:21:44 +02:00
|
|
|
environment:
|
|
|
|
RABBITMQ_DEFAULT_VHOST: awx
|
2019-10-23 12:29:57 +02:00
|
|
|
RABBITMQ_DEFAULT_USER: guest
|
|
|
|
RABBITMQ_DEFAULT_PASS: guest
|
2019-01-16 13:21:44 +02:00
|
|
|
RABBITMQ_ERLANG_COOKIE: cookiemonster
|
|
|
|
restart: unless-stopped
|
|
|
|
|
|
|
|
memcached:
|
|
|
|
image: memcached:alpine
|
2019-10-23 12:29:57 +02:00
|
|
|
container_name: awx_memcached
|
2019-01-16 13:21:44 +02:00
|
|
|
restart: unless-stopped
|
|
|
|
|
|
|
|
postgres:
|
2019-10-23 12:29:57 +02:00
|
|
|
image: postgres:12-alpine
|
|
|
|
container_name: awx_postgres
|
2019-01-16 13:21:44 +02:00
|
|
|
volumes:
|
2019-10-23 12:29:57 +02:00
|
|
|
- ./data/postgres:/var/lib/postgresql/data/pgdata:Z
|
2019-01-16 13:21:44 +02:00
|
|
|
environment:
|
|
|
|
POSTGRES_USER: awx
|
|
|
|
POSTGRES_PASSWORD: awxpass
|
|
|
|
POSTGRES_DB: awx
|
2019-10-23 12:29:57 +02:00
|
|
|
PGDATA: /var/lib/postgresql/data/pgdata
|
2019-01-16 13:21:44 +02:00
|
|
|
restart: unless-stopped
|