1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-11-28 09:08:50 +02:00
This commit is contained in:
kev 2019-01-16 19:21:44 +08:00
parent 905d7a4b57
commit ff7cca5889

89
awx/docker-compose.yml Normal file
View File

@ -0,0 +1,89 @@
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