-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yaml
153 lines (143 loc) · 3.68 KB
/
docker-compose.yaml
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
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
version: '3.8' # if no version is specificed then v1 is assumed. Recommend v2 minimum
services:
centos-c:
hostname: centos-c
container_name: centos-c
image: sahanebhushan7/ansible:ansible
ports:
- ${CENTOSC_PORT_SSHD}:22
- ${CENTOSC_PORT_TTYD}:7681
privileged: true
volumes:
- ${CONFIG}:/config
- ${ANSIBLE_HOME}/shared:/shared
- ${ANSIBLE_HOME}/centos-c/ansible:/home/ansible
- ${ANSIBLE_HOME}/centos-c/root:/root
networks:
- diveinto.io
centos1:
hostname: centos1
container_name: centos1
image: spurin/diveintoansible:centos
ports:
- ${CENTOS1_PORT_SSHD}:22
- ${CENTOS1_PORT_TTYD}:7681
privileged: true
volumes:
- ${CONFIG}:/config
- ${ANSIBLE_HOME}/shared:/shared
- ${ANSIBLE_HOME}/centos1/ansible:/home/ansible
- ${ANSIBLE_HOME}/centos1/root:/root
networks:
- diveinto.io
centos2:
hostname: centos2
container_name: centos2
image: spurin/diveintoansible:centos
ports:
- ${CENTOS2_PORT_SSHD}:22
- ${CENTOS2_PORT_TTYD}:7681
privileged: true
volumes:
- ${CONFIG}:/config
- ${ANSIBLE_HOME}/shared:/shared
- ${ANSIBLE_HOME}/centos2/ansible:/home/ansible
- ${ANSIBLE_HOME}/centos2/root:/root
networks:
- diveinto.io
centos3:
hostname: centos3
container_name: centos3
image: spurin/diveintoansible:centos
ports:
- ${CENTOS3_PORT_SSHD}:22
- ${CENTOS3_PORT_TTYD}:7681
privileged: true
volumes:
- ${CONFIG}:/config
- ${ANSIBLE_HOME}/shared:/shared
- ${ANSIBLE_HOME}/centos3/ansible:/home/ansible
- ${ANSIBLE_HOME}/centos3/root:/root
networks:
- diveinto.io
centos4:
hostname: centos4
container_name: centos4
image: spurin/diveintoansible:centos
ports:
- ${CENTOS4_PORT_SSHD}:22
- ${CENTOS4_PORT_TTYD}:7681
privileged: true
volumes:
- ${CONFIG}:/config
- ${ANSIBLE_HOME}/shared:/shared
- ${ANSIBLE_HOME}/centos4/ansible:/home/ansible
- ${ANSIBLE_HOME}/centos4/root:/root
networks:
- diveinto.io
centos5:
hostname: centos5
container_name: centos5
image: spurin/diveintoansible:centos
ports:
- ${CENTOS5_PORT_SSHD}:22
- ${CENTOS5_PORT_TTYD}:7681
privileged: true
volumes:
- ${CONFIG}:/config
- ${ANSIBLE_HOME}/shared:/shared
- ${ANSIBLE_HOME}/centos5/ansible:/home/ansible
- ${ANSIBLE_HOME}/centos5/root:/root
networks:
- diveinto.io
centos6:
hostname: centos6
container_name: centos6
image: spurin/diveintoansible:centos
ports:
- ${CENTOS6_PORT_SSHD}:22
- ${CENTOS6_PORT_TTYD}:7681
privileged: true
volumes:
- ${CONFIG}:/config
- ${ANSIBLE_HOME}/shared:/shared
- ${ANSIBLE_HOME}/centos6/ansible:/home/ansible
- ${ANSIBLE_HOME}/centos6/root:/root
networks:
- diveinto.io
docker:
hostname: docker
container_name: docker
image: spurin/diveintoansible:dind
privileged: yes
volumes:
- ${ANSIBLE_HOME}/shared:/shared
networks:
- diveinto.io
portal:
hostname: portal
container_name: portal
image: sahanebhushan7/ansible:portal
environment:
- NGINX_ENTRYPOINT_QUIET_LOGS=1
depends_on:
- centos1
- centos2
- centos3
- centos4
- centos5
- centos6
ports:
- "1000:80"
networks:
- diveinto.io
networks:
diveinto.io:
name: diveinto.io
# Canonical bridge interface name
#
# The setting below provides a friendly name for the bridge interface
# as seen in the likes of the ip command. Use at your own discretion
#
#driver_opts:
# com.docker.network.bridge.name: "diveinto.io"