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

79 lines
2.2 KiB
YAML
Raw Normal View History

2019-10-23 12:29:57 +02:00
#
2021-03-19 09:48:42 +02:00
# https://github.com/ansible/awx/blob/17.1.0/installer/roles/local_docker/templates/docker-compose.yml.j2
2019-10-23 12:29:57 +02:00
#
2019-01-16 13:21:44 +02:00
version: '2'
services:
web:
2021-03-19 09:48:42 +02:00
image: ansible/awx:17.1.0
2019-10-23 12:29:57 +02:00
container_name: awx_web
2019-01-16 13:21:44 +02:00
hostname: awxweb
user: root
2019-10-23 12:29:57 +02:00
ports:
- "8052:8052"
2019-01-16 13:21:44 +02:00
volumes:
2020-06-22 12:24:09 +02:00
- supervisor-socket:/var/run/supervisor
- rsyslog-socket:/var/run/awx-rsyslog
- rsyslog-config:/var/lib/awx/rsyslog
2019-10-30 10:11:49 +02:00
- ./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
2019-12-04 11:25:07 +02:00
- ./data/settings/nginx.conf:/etc/nginx/nginx.conf
2020-06-22 12:24:09 +02:00
- ./data/redis/redis_socket:/var/run/redis:rw
- ./data/projects:/var/lib/awx/projects:rw
2019-01-16 13:21:44 +02:00
depends_on:
- postgres
2020-06-22 12:24:09 +02:00
- redis
2019-01-16 13:21:44 +02:00
restart: unless-stopped
task:
2021-03-19 09:48:42 +02:00
image: ansible/awx:17.1.0
2020-06-22 12:24:09 +02:00
command: /usr/bin/launch_awx_task.sh
2019-10-23 12:29:57 +02:00
container_name: awx_task
2019-01-16 13:21:44 +02:00
hostname: awx
user: root
volumes:
2020-06-22 12:24:09 +02:00
- supervisor-socket:/var/run/supervisor
- rsyslog-socket:/var/run/awx-rsyslog
- rsyslog-config:/var/lib/awx/rsyslog
2019-10-30 10:11:49 +02:00
- ./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
2020-06-22 12:24:09 +02:00
- ./data/redis/redis_socket:/var/run/redis:rw
- ./data/projects:/var/lib/awx/projects:rw
environment:
2020-06-24 10:02:55 +02:00
SUPERVISOR_WEB_CONFIG_PATH: /etc/supervisord.conf
2019-01-16 13:21:44 +02:00
depends_on:
- postgres
2020-06-22 12:24:09 +02:00
- redis
- web
2019-01-16 13:21:44 +02:00
restart: unless-stopped
2020-06-22 12:24:09 +02:00
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
2019-01-16 13:21:44 +02:00
restart: unless-stopped
postgres:
2020-11-23 13:13:17 +02:00
image: postgres:13-alpine
2019-10-23 12:29:57 +02:00
container_name: awx_postgres
2019-01-16 13:21:44 +02:00
volumes:
2019-10-23 12:29:57 +02:00
- ./data/postgres:/var/lib/postgresql/data/pgdata:Z
2019-01-16 13:21:44 +02:00
environment:
POSTGRES_USER: awx
POSTGRES_PASSWORD: awxpass
POSTGRES_DB: awx
2019-10-23 12:29:57 +02:00
PGDATA: /var/lib/postgresql/data/pgdata
2019-01-16 13:21:44 +02:00
restart: unless-stopped
2020-06-22 12:24:09 +02:00
volumes:
supervisor-socket:
rsyslog-socket:
rsyslog-config: