1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2025-01-06 03:54:01 +02:00
dockerfiles/awx/docker-compose.yml

71 lines
1.8 KiB
YAML
Raw Normal View History

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:
2020-01-21 10:19:08 +02:00
image: ansible/awx_web:9.1.1
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-30 10:11:49 +02:00
- ./data/settings/SECRET_KEY:/etc/tower/SECRET_KEY
- ./data/settings/environment.sh:/etc/tower/conf.d/environment.sh
- ./data/settings/credentials.py:/etc/tower/conf.d/credentials.py
2019-12-04 11:25:07 +02:00
- ./data/settings/nginx.conf:/etc/nginx/nginx.conf
2019-10-30 10:11:49 +02:00
- ./data/projects:/var/lib/awx/projects
2019-01-16 13:21:44 +02:00
depends_on:
- rabbitmq
- memcached
- postgres
restart: unless-stopped
task:
2020-01-21 10:19:08 +02:00
image: ansible/awx_task:9.1.1
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-30 10:11:49 +02:00
- ./data/settings/SECRET_KEY:/etc/tower/SECRET_KEY
- ./data/settings/environment.sh:/etc/tower/conf.d/environment.sh
- ./data/settings/credentials.py:/etc/tower/conf.d/credentials.py
- ./data/projects:/var/lib/awx/projects
2019-01-16 13:21:44 +02:00
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