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
|
├── projects
|
||||||
│ └── example
|
│ └── example
|
||||||
│ └── playbook.yml
|
│ └── playbook.yml
|
||||||
|
├── redis
|
||||||
|
│ └── redis.conf
|
||||||
└── settings
|
└── settings
|
||||||
├── SECRET_KEY
|
├── SECRET_KEY
|
||||||
├── credentials.py
|
├── credentials.py
|
||||||
└── environment.sh
|
├── environment.sh
|
||||||
|
└── nginx.conf
|
||||||
```
|
```
|
||||||
|
|
||||||
## up and running
|
## 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'
|
BROADCAST_WEBSOCKET_SECRET = "{{ '🤖starscream🤖' | b64encode }}"
|
||||||
|
|
||||||
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',
|
|
||||||
},
|
|
||||||
}
|
|
||||||
|
@ -3,10 +3,5 @@ DATABASE_NAME=awx
|
|||||||
DATABASE_HOST=postgres
|
DATABASE_HOST=postgres
|
||||||
DATABASE_PORT=5432
|
DATABASE_PORT=5432
|
||||||
DATABASE_PASSWORD=awxpass
|
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_USER=admin
|
||||||
AWX_ADMIN_PASSWORD=password
|
AWX_ADMIN_PASSWORD=password
|
||||||
|
@ -93,6 +93,7 @@ http {
|
|||||||
uwsgi_pass uwsgi;
|
uwsgi_pass uwsgi;
|
||||||
include /etc/nginx/uwsgi_params;
|
include /etc/nginx/uwsgi_params;
|
||||||
proxy_set_header X-Forwarded-Port 443;
|
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'
|
version: '2'
|
||||||
@ -7,54 +7,57 @@ version: '2'
|
|||||||
services:
|
services:
|
||||||
|
|
||||||
web:
|
web:
|
||||||
image: ansible/awx_web:9.3.0
|
image: ansible/awx:12.0.0
|
||||||
container_name: awx_web
|
container_name: awx_web
|
||||||
hostname: awxweb
|
hostname: awxweb
|
||||||
user: root
|
user: root
|
||||||
ports:
|
ports:
|
||||||
- "8052:8052"
|
- "8052:8052"
|
||||||
volumes:
|
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/SECRET_KEY:/etc/tower/SECRET_KEY
|
||||||
- ./data/settings/environment.sh:/etc/tower/conf.d/environment.sh
|
- ./data/settings/environment.sh:/etc/tower/conf.d/environment.sh
|
||||||
- ./data/settings/credentials.py:/etc/tower/conf.d/credentials.py
|
- ./data/settings/credentials.py:/etc/tower/conf.d/credentials.py
|
||||||
- ./data/settings/nginx.conf:/etc/nginx/nginx.conf
|
- ./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:
|
depends_on:
|
||||||
- rabbitmq
|
|
||||||
- memcached
|
|
||||||
- postgres
|
- postgres
|
||||||
|
- redis
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
|
||||||
task:
|
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
|
container_name: awx_task
|
||||||
hostname: awx
|
hostname: awx
|
||||||
user: root
|
user: root
|
||||||
volumes:
|
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/SECRET_KEY:/etc/tower/SECRET_KEY
|
||||||
- ./data/settings/environment.sh:/etc/tower/conf.d/environment.sh
|
- ./data/settings/environment.sh:/etc/tower/conf.d/environment.sh
|
||||||
- ./data/settings/credentials.py:/etc/tower/conf.d/credentials.py
|
- ./data/settings/credentials.py:/etc/tower/conf.d/credentials.py
|
||||||
- ./data/projects:/var/lib/awx/projects
|
- ./data/redis/redis_socket:/var/run/redis:rw
|
||||||
depends_on:
|
- ./data/projects:/var/lib/awx/projects:rw
|
||||||
- rabbitmq
|
|
||||||
- memcached
|
|
||||||
- web
|
|
||||||
- postgres
|
|
||||||
restart: unless-stopped
|
|
||||||
|
|
||||||
rabbitmq:
|
|
||||||
image: ansible/awx_rabbitmq
|
|
||||||
container_name: awx_rabbitmq
|
|
||||||
environment:
|
environment:
|
||||||
RABBITMQ_DEFAULT_VHOST: awx
|
- SUPERVISOR_WEB_CONFIG_PATH=/supervisor.conf
|
||||||
RABBITMQ_DEFAULT_USER: guest
|
depends_on:
|
||||||
RABBITMQ_DEFAULT_PASS: guest
|
- postgres
|
||||||
RABBITMQ_ERLANG_COOKIE: cookiemonster
|
- redis
|
||||||
|
- web
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
|
||||||
memcached:
|
redis:
|
||||||
image: memcached:alpine
|
image: redis:5-alpine
|
||||||
container_name: awx_memcached
|
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
|
restart: unless-stopped
|
||||||
|
|
||||||
postgres:
|
postgres:
|
||||||
@ -68,3 +71,8 @@ services:
|
|||||||
POSTGRES_DB: awx
|
POSTGRES_DB: awx
|
||||||
PGDATA: /var/lib/postgresql/data/pgdata
|
PGDATA: /var/lib/postgresql/data/pgdata
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
|
||||||
|
volumes:
|
||||||
|
supervisor-socket:
|
||||||
|
rsyslog-socket:
|
||||||
|
rsyslog-config:
|
||||||
|
Loading…
Reference in New Issue
Block a user