1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-12-23 01:39:27 +02:00
dockerfiles/awx/docker-compose.yml
2019-01-16 19:21:44 +08:00

90 lines
1.9 KiB
YAML

version: '2'
services:
web:
image: ansible/awx_web
ports:
- "8052:8052"
hostname: awxweb
user: root
volumes:
- ./data/awx:/var/lib/awx/projects
environment:
http_proxy: ''
https_proxy: ''
no_proxy: ''
SECRET_KEY: awxsecret
DATABASE_NAME: awx
DATABASE_USER: awx
DATABASE_PASSWORD: awxpass
DATABASE_PORT: 5432
DATABASE_HOST: postgres
RABBITMQ_USER: guest
RABBITMQ_PASSWORD: guest
RABBITMQ_HOST: rabbitmq
RABBITMQ_PORT: 5672
RABBITMQ_VHOST: awx
MEMCACHED_HOST: memcached
MEMCACHED_PORT: 11211
AWX_ADMIN_USER: admin
AWX_ADMIN_PASSWORD: password
depends_on:
- rabbitmq
- memcached
- postgres
restart: unless-stopped
task:
image: ansible/awx_task
hostname: awx
user: root
volumes:
- ./data/awx:/var/lib/awx/projects
environment:
http_proxy: ''
https_proxy: ''
no_proxy: ''
SECRET_KEY: awxsecret
DATABASE_NAME: awx
DATABASE_USER: awx
DATABASE_PASSWORD: awxpass
DATABASE_HOST: postgres
DATABASE_PORT: 5432
RABBITMQ_USER: guest
RABBITMQ_PASSWORD: guest
RABBITMQ_HOST: rabbitmq
RABBITMQ_PORT: 5672
RABBITMQ_VHOST: awx
MEMCACHED_HOST: memcached
MEMCACHED_PORT: 11211
AWX_ADMIN_USER: admin
AWX_ADMIN_PASSWORD: password
depends_on:
- rabbitmq
- memcached
- web
- postgres
restart: unless-stopped
rabbitmq:
image: ansible/awx_rabbitmq
environment:
RABBITMQ_DEFAULT_VHOST: awx
RABBITMQ_ERLANG_COOKIE: cookiemonster
restart: unless-stopped
memcached:
image: memcached:alpine
restart: unless-stopped
postgres:
image: postgres:9.6-alpine
volumes:
- ./data/postgres:/var/lib/postgresql/data
environment:
POSTGRES_USER: awx
POSTGRES_PASSWORD: awxpass
POSTGRES_DB: awx
restart: unless-stopped