mirror of
https://github.com/vimagick/dockerfiles.git
synced 2024-12-23 01:39:27 +02:00
update awx
This commit is contained in:
parent
907391b382
commit
77dc4a118e
@ -12,10 +12,13 @@ data
|
||||
├── projects
|
||||
│ └── example
|
||||
│ └── playbook.yml
|
||||
├── redis
|
||||
│ └── redis.conf
|
||||
└── settings
|
||||
├── SECRET_KEY
|
||||
├── credentials.py
|
||||
└── environment.sh
|
||||
├── environment.sh
|
||||
└── nginx.conf
|
||||
```
|
||||
|
||||
## up and running
|
||||
|
4
awx/data/redis/redis.conf
Normal file
4
awx/data/redis/redis.conf
Normal file
@ -0,0 +1,4 @@
|
||||
unixsocket /var/run/redis/redis.sock
|
||||
unixsocketperm 777
|
||||
port 0
|
||||
bind 127.0.0.1
|
@ -10,20 +10,4 @@ DATABASES = {
|
||||
}
|
||||
}
|
||||
|
||||
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',
|
||||
},
|
||||
}
|
||||
BROADCAST_WEBSOCKET_SECRET = "{{ '🤖starscream🤖' | b64encode }}"
|
||||
|
@ -3,10 +3,5 @@ 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
|
||||
|
@ -93,6 +93,7 @@ http {
|
||||
uwsgi_pass uwsgi;
|
||||
include /etc/nginx/uwsgi_params;
|
||||
proxy_set_header X-Forwarded-Port 443;
|
||||
uwsgi_param HTTP_X_FORWARDED_PORT 443;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1,5 +1,5 @@
|
||||
#
|
||||
# https://github.com/ansible/awx/raw/devel/installer/roles/local_docker/templates/docker-compose.yml.j2
|
||||
# https://github.com/ansible/awx/blob/12.0.0/installer/roles/local_docker/templates/docker-compose.yml.j2
|
||||
#
|
||||
|
||||
version: '2'
|
||||
@ -7,54 +7,57 @@ version: '2'
|
||||
services:
|
||||
|
||||
web:
|
||||
image: ansible/awx_web:9.3.0
|
||||
image: ansible/awx:12.0.0
|
||||
container_name: awx_web
|
||||
hostname: awxweb
|
||||
user: root
|
||||
ports:
|
||||
- "8052:8052"
|
||||
volumes:
|
||||
- supervisor-socket:/var/run/supervisor
|
||||
- rsyslog-socket:/var/run/awx-rsyslog
|
||||
- rsyslog-config:/var/lib/awx/rsyslog
|
||||
- ./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/settings/nginx.conf:/etc/nginx/nginx.conf
|
||||
- ./data/projects:/var/lib/awx/projects
|
||||
- ./data/redis/redis_socket:/var/run/redis:rw
|
||||
- ./data/projects:/var/lib/awx/projects:rw
|
||||
depends_on:
|
||||
- rabbitmq
|
||||
- memcached
|
||||
- postgres
|
||||
- redis
|
||||
restart: unless-stopped
|
||||
|
||||
task:
|
||||
image: ansible/awx_task:9.3.0
|
||||
image: ansible/awx:12.0.0
|
||||
command: /usr/bin/launch_awx_task.sh
|
||||
container_name: awx_task
|
||||
hostname: awx
|
||||
user: root
|
||||
volumes:
|
||||
- supervisor-socket:/var/run/supervisor
|
||||
- rsyslog-socket:/var/run/awx-rsyslog
|
||||
- rsyslog-config:/var/lib/awx/rsyslog
|
||||
- ./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
|
||||
depends_on:
|
||||
- rabbitmq
|
||||
- memcached
|
||||
- web
|
||||
- postgres
|
||||
restart: unless-stopped
|
||||
|
||||
rabbitmq:
|
||||
image: ansible/awx_rabbitmq
|
||||
container_name: awx_rabbitmq
|
||||
- ./data/redis/redis_socket:/var/run/redis:rw
|
||||
- ./data/projects:/var/lib/awx/projects:rw
|
||||
environment:
|
||||
RABBITMQ_DEFAULT_VHOST: awx
|
||||
RABBITMQ_DEFAULT_USER: guest
|
||||
RABBITMQ_DEFAULT_PASS: guest
|
||||
RABBITMQ_ERLANG_COOKIE: cookiemonster
|
||||
- SUPERVISOR_WEB_CONFIG_PATH=/supervisor.conf
|
||||
depends_on:
|
||||
- postgres
|
||||
- redis
|
||||
- web
|
||||
restart: unless-stopped
|
||||
|
||||
memcached:
|
||||
image: memcached:alpine
|
||||
container_name: awx_memcached
|
||||
redis:
|
||||
image: redis:5-alpine
|
||||
container_name: awx_redis
|
||||
command: ["/usr/local/etc/redis/redis.conf"]
|
||||
volumes:
|
||||
- ./data/redis/redis.conf:/usr/local/etc/redis/redis.conf:ro
|
||||
- ./data/redis/redis_socket:/var/run/redis:rw
|
||||
restart: unless-stopped
|
||||
|
||||
postgres:
|
||||
@ -68,3 +71,8 @@ services:
|
||||
POSTGRES_DB: awx
|
||||
PGDATA: /var/lib/postgresql/data/pgdata
|
||||
restart: unless-stopped
|
||||
|
||||
volumes:
|
||||
supervisor-socket:
|
||||
rsyslog-socket:
|
||||
rsyslog-config:
|
||||
|
Loading…
Reference in New Issue
Block a user