mirror of
https://github.com/vimagick/dockerfiles.git
synced 2024-12-25 02:04:06 +02:00
update awx
This commit is contained in:
parent
8a7dee5479
commit
3cdd468e02
9
awx/README.md
Normal file
9
awx/README.md
Normal file
@ -0,0 +1,9 @@
|
||||
awx
|
||||
===
|
||||
|
||||
[AWX][1] provides a web-based user interface, REST API, and task engine built
|
||||
on top of Ansible. It is the upstream project for [Tower][2], a commercial
|
||||
derivative of AWX.
|
||||
|
||||
[1]: https://github.com/ansible/awx
|
||||
[2]: https://www.ansible.com/tower
|
1
awx/data/etc/SECRET_KEY
Normal file
1
awx/data/etc/SECRET_KEY
Normal file
@ -0,0 +1 @@
|
||||
isasekrit
|
29
awx/data/etc/credentials.py
Normal file
29
awx/data/etc/credentials.py
Normal file
@ -0,0 +1,29 @@
|
||||
DATABASES = {
|
||||
'default': {
|
||||
'ATOMIC_REQUESTS': True,
|
||||
'ENGINE': 'django.db.backends.postgresql',
|
||||
'NAME': "awx",
|
||||
'USER': "awx",
|
||||
'PASSWORD': "awxpass",
|
||||
'HOST': "postgres",
|
||||
'PORT': "5432",
|
||||
}
|
||||
}
|
||||
|
||||
BROKER_URL = 'amqp://guest:guest@rabbitmq:5672/awx'
|
||||
|
||||
CHANNEL_LAYERS = {
|
||||
'default': {'BACKEND': 'asgi_amqp.AMQPChannelLayer',
|
||||
'ROUTING': 'awx.main.routing.channel_routing',
|
||||
'CONFIG': {'url': BROKER_URL}}
|
||||
}
|
||||
|
||||
CACHES = {
|
||||
'default': {
|
||||
'BACKEND': 'django.core.cache.backends.memcached.MemcachedCache',
|
||||
'LOCATION': 'memcached:11211'
|
||||
},
|
||||
'ephemeral': {
|
||||
'BACKEND': 'django.core.cache.backends.locmem.LocMemCache',
|
||||
},
|
||||
}
|
12
awx/data/etc/environment.sh
Normal file
12
awx/data/etc/environment.sh
Normal file
@ -0,0 +1,12 @@
|
||||
DATABASE_USER=awx
|
||||
DATABASE_NAME=awx
|
||||
DATABASE_HOST=postgres
|
||||
DATABASE_PORT=5432
|
||||
DATABASE_PASSWORD=awxpass
|
||||
DATABASE_ADMIN_PASSWORD=postgrespass
|
||||
MEMCACHED_HOST=memcached
|
||||
MEMCACHED_PORT=11211
|
||||
RABBITMQ_HOST=rabbitmq
|
||||
RABBITMQ_PORT=5672
|
||||
AWX_ADMIN_USER=admin
|
||||
AWX_ADMIN_PASSWORD=password
|
@ -1,34 +1,23 @@
|
||||
#
|
||||
# https://github.com/ansible/awx/raw/devel/installer/roles/local_docker/templates/docker-compose.yml.j2
|
||||
#
|
||||
|
||||
version: '2'
|
||||
|
||||
services:
|
||||
|
||||
web:
|
||||
image: ansible/awx_web
|
||||
ports:
|
||||
- "8052:8052"
|
||||
container_name: awx_web
|
||||
hostname: awxweb
|
||||
user: root
|
||||
ports:
|
||||
- "8052:8052"
|
||||
volumes:
|
||||
- ./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
|
||||
- ./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
|
||||
@ -37,29 +26,14 @@ services:
|
||||
|
||||
task:
|
||||
image: ansible/awx_task
|
||||
container_name: awx_task
|
||||
hostname: awx
|
||||
user: root
|
||||
volumes:
|
||||
- ./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
|
||||
- ./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
|
||||
@ -69,21 +43,27 @@ services:
|
||||
|
||||
rabbitmq:
|
||||
image: ansible/awx_rabbitmq
|
||||
container_name: awx_rabbitmq
|
||||
environment:
|
||||
RABBITMQ_DEFAULT_VHOST: awx
|
||||
RABBITMQ_DEFAULT_USER: guest
|
||||
RABBITMQ_DEFAULT_PASS: guest
|
||||
RABBITMQ_ERLANG_COOKIE: cookiemonster
|
||||
restart: unless-stopped
|
||||
|
||||
memcached:
|
||||
image: memcached:alpine
|
||||
container_name: awx_memcached
|
||||
restart: unless-stopped
|
||||
|
||||
postgres:
|
||||
image: postgres:9.6-alpine
|
||||
image: postgres:12-alpine
|
||||
container_name: awx_postgres
|
||||
volumes:
|
||||
- ./data/postgres:/var/lib/postgresql/data
|
||||
- ./data/postgres:/var/lib/postgresql/data/pgdata:Z
|
||||
environment:
|
||||
POSTGRES_USER: awx
|
||||
POSTGRES_PASSWORD: awxpass
|
||||
POSTGRES_DB: awx
|
||||
PGDATA: /var/lib/postgresql/data/pgdata
|
||||
restart: unless-stopped
|
||||
|
Loading…
Reference in New Issue
Block a user