forked from vimagick/dockerfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
70 lines (63 loc) · 1.81 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
#
# https://github.com/ansible/awx/raw/devel/installer/roles/local_docker/templates/docker-compose.yml.j2
#
version: '2'
services:
web:
image: ansible/awx_web:9.1.1
container_name: awx_web
hostname: awxweb
user: root
ports:
- "8052:8052"
volumes:
- ./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
depends_on:
- rabbitmq
- memcached
- postgres
restart: unless-stopped
task:
image: ansible/awx_task:9.1.1
container_name: awx_task
hostname: awx
user: root
volumes:
- ./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
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:12-alpine
container_name: awx_postgres
volumes:
- ./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