-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker_compose_awx_from_atos_dockerhub.yml
109 lines (102 loc) · 4.21 KB
/
docker_compose_awx_from_atos_dockerhub.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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
version: '3.6'
services:
awx_web:
image: atosorigin/bull-sequana-edge-awx-web:${MISM_BULLSEQUANA_EDGE_VERSION}
container_name: awx_web
depends_on:
- rabbitmq
- memcached
- awx_postgres
ports:
- "443:8052"
hostname: awx_web
user: root
restart: always
volumes:
- ./ansible/playbooks:/var/lib/awx/projects:rw
- ./ansible/inventory:/var/lib/awx/inventory:rw
- ./ansible/inventory:/etc/ansible:rw
- ./ansible/vars:/etc/ansible/vars:rw
# - ./ansible/plugins/inventory/redfish_plugin_ansible_inventory.yml:/usr/lib/python2.7/site-packages/ansible/plugins/inventory/redfish_plugin_ansible_inventory.yml
- ./ansible/plugins/inventory/redfish_plugin_ansible_inventory.yml:/usr/share/ansible/plugins/inventory/redfish_plugin_ansible_inventory.yml
- ./ansible/plugins/inventory/redfish_plugin_ansible_inventory.py:/usr/lib/python3.6/site-packages/ansible/plugins/inventory/redfish_plugin_ansible_inventory.py
# - ./ansible/plugins/inventory/:/usr/share/ansible/plugins/inventory
- ./ansible/plugins/callback/ansible_stdout_compact_logger:/usr/share/ansible/plugins/callback/ansible_stdout_compact_logger
- ./ansible/plugins/modules/remote_management/openbmc/atos_openbmc.py:/usr/lib/python3.6/site-packages/ansible/modules/remote_management/openbmc/atos_openbmc.py:ro
- ./ansible/plugins/modules/remote_management/openbmc/atos_openbmc_utils.py:/usr/lib/python3.6/site-packages/ansible/module_utils/atos_openbmc_utils.py:ro
- ./ansible/awx-ssl:/var/lib/awx-ssl:rw
- /:/host:ro
env_file:
- Dockerfiles/ansible.env
awx_task:
image: atosorigin/bull-sequana-edge-awx-task:${MISM_BULLSEQUANA_EDGE_VERSION}
container_name: awx_task
depends_on:
- rabbitmq
- memcached
- awx_web
- awx_postgres
# command: ["/var/lib/awx/projects/add_playbooks.py", "/var/lib/awx/projects/playbooks.yml"]
hostname: awx
user: root
restart: always
volumes:
- ./ansible/playbooks:/var/lib/awx/projects:rw
- ./ansible/inventory:/var/lib/awx/inventory:rw
- ./ansible/inventory:/etc/ansible:rw
- ./ansible/vars:/etc/ansible/vars:rw
- ./ansible/plugins/inventory/redfish_plugin_ansible_inventory.yml:/usr/share/ansible/plugins/inventory/redfish_plugin_ansible_inventory.yml
- ./ansible/plugins/inventory/redfish_plugin_ansible_inventory.py:/usr/lib/python3.6/site-packages/ansible/plugins/inventory/redfish_plugin_ansible_inventory.py
# - ./ansible/plugins/inventory/:/usr/share/ansible/plugins/inventory
- ./ansible/plugins/callback/ansible_stdout_compact_logger:/usr/share/ansible/plugins/callback/ansible_stdout_compact_logger
- ./ansible/plugins/modules/remote_management/openbmc/atos_openbmc.py:/usr/lib/python3.6/site-packages/ansible/modules/remote_management/openbmc/atos_openbmc.py:ro
- ./ansible/plugins/modules/remote_management/openbmc/atos_openbmc_utils.py:/usr/lib/python3.6/site-packages/ansible/module_utils/atos_openbmc_utils.py:ro
- ./ansible/awx-ssl:/var/lib/awx-ssl:rw
- /:/host:ro
env_file:
- Dockerfiles/ansible.env
rabbitmq:
image: rabbitmq:${RABBITMQ_AWX_BULLSEQUANA_EDGE_VERSION}
container_name: awx_rabbitmq
restart: always
hostname: rabbitmq
expose:
- 15672
- 5672
ports:
- 15672:15672
- 5672:5672
env_file:
- Dockerfiles/ansible.env
memcached:
image: memcached:${MEMCACHED_AWX_BULLSEQUANA_EDGE_VERSION}
container_name: awx_memcached
restart: always
awx_postgres:
image: postgres:${POSTGRES_AWX_BULLSEQUANA_EDGE_VERSION}
container_name: awx_postgres
hostname: awx_postgres
restart: always
ports:
- 5432:5432
expose:
- 5432
volumes:
- ./ansible/pgdata:/var/lib/postgresql/data/pgdata:Z
env_file:
- Dockerfiles/ansible.env
environment:
PGDATA: /var/lib/postgresql/data/pgdata
pgadmin:
image: dpage/pgadmin4:${PGADMIN_AWX_BULLSEQUANA_EDGE_VERSION}
container_name: pgadmin
depends_on:
- awx_postgres
user: root
restart: always
ports:
- 7070:80
volumes:
- ./ansible/pgadmin:/var/lib/pgadmin/storage:Z
env_file:
- Dockerfiles/ansible.env