File tree 3 files changed +77
-15
lines changed
3 files changed +77
-15
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,6 @@ services:
9
9
image : codespaces/anisble-control:v0.1.0
10
10
ports :
11
11
- " 8000:8000"
12
- - " 2222:22"
13
12
environment :
14
13
CODEBOX_USERNAME : devops
15
14
CODEBOX_PASSWORD : codespaces
@@ -18,50 +17,46 @@ services:
18
17
networks :
19
18
- custom
20
19
container_name : control
21
- domainname : schoolofdevops.com
20
+ domainname : codespaces.io
22
21
hostname : control
23
22
restart : always
24
23
node1 :
25
24
image : codespaces/anisble-node-centos-6:v0.1.0
26
25
container_name : lb
27
26
ports :
28
- - " 2223:22"
29
27
- " 8080:80"
30
28
networks :
31
29
- custom
32
- domainname : schoolofdevops.com
30
+ domainname : codespaces.io
33
31
hostname : lb
34
32
restart : always
35
33
node2 :
36
34
image : codespaces/anisble-node-centos-6:v0.1.0
37
35
ports :
38
- - " 2224:22"
39
36
- " 81:80"
40
37
networks :
41
38
- custom
42
39
container_name : app1
43
- domainname : schoolofdevops.com
40
+ domainname : codespaces.io
44
41
hostname : app1
45
42
restart : always
46
43
node3 :
47
44
image : codespaces/anisble-node-ubuntu-1404:v0.1.0
48
45
ports :
49
- - " 2225:22"
50
46
- " 82:80"
51
47
networks :
52
48
- custom
53
49
container_name : app2
54
- domainname : schoolofdevops.com
50
+ domainname : codespaces.io
55
51
hostname : app2
56
52
restart : always
57
53
node4 :
58
54
image : codespaces/anisble-node-centos-6:v0.1.0
59
55
ports :
60
- - " 2226:22"
61
56
- " 3306:3306"
62
57
networks :
63
58
- custom
64
59
container_name : db
65
- domainname : schoolofdevops.com
60
+ domainname : codespaces.io
66
61
hostname : db
67
62
restart : always
Original file line number Diff line number Diff line change
1
+ version: '2'
2
+
3
+ networks:
4
+ custom:
5
+ driver: bridge
6
+
7
+ services:
8
+ control:
9
+ image: codespaces/anisble-control:v0.1.0
10
+ ports:
11
+ - "8000:8000"
12
+ - "2222:22"
13
+ environment:
14
+ CODEBOX_USERNAME: devops
15
+ CODEBOX_PASSWORD: codespaces
16
+ volumes:
17
+ - ./code:/workspace
18
+ networks:
19
+ - custom
20
+ container_name: control
21
+ domainname: schoolofdevops.com
22
+ hostname: control
23
+ restart: always
24
+ node1:
25
+ image: codespaces/anisble-node-centos-6:v0.1.0
26
+ container_name: lb
27
+ ports:
28
+ - "2223:22"
29
+ - "8080:80"
30
+ networks:
31
+ - custom
32
+ domainname: schoolofdevops.com
33
+ hostname: lb
34
+ restart: always
35
+ node2:
36
+ image: codespaces/anisble-node-centos-6:v0.1.0
37
+ ports:
38
+ - "2224:22"
39
+ - "81:80"
40
+ networks:
41
+ - custom
42
+ container_name: app1
43
+ domainname: schoolofdevops.com
44
+ hostname: app1
45
+ restart: always
46
+ node3:
47
+ image: codespaces/anisble-node-ubuntu-1404:v0.1.0
48
+ ports:
49
+ - "2225:22"
50
+ - "82:80"
51
+ networks:
52
+ - custom
53
+ container_name: app2
54
+ domainname: schoolofdevops.com
55
+ hostname: app2
56
+ restart: always
57
+ node4:
58
+ image: codespaces/anisble-node-centos-6:v0.1.0
59
+ ports:
60
+ - "2226:22"
61
+ - "3306:3306"
62
+ networks:
63
+ - custom
64
+ container_name: db
65
+ domainname: schoolofdevops.com
66
+ hostname: db
67
+ restart: always
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ services:
18
18
networks :
19
19
- custom
20
20
container_name : control
21
- domainname : schoolofdevops.com
21
+ domainname : codespaces.io
22
22
hostname : control
23
23
lb :
24
24
image : schoolofdevops/centos-node:v1.1
@@ -28,7 +28,7 @@ services:
28
28
- " 8080:80"
29
29
networks :
30
30
- custom
31
- domainname : schoolofdevops.com
31
+ domainname : codespaces.io
32
32
hostname : lb
33
33
app1 :
34
34
image : schoolofdevops/centos-node:v1.1
@@ -38,7 +38,7 @@ services:
38
38
networks :
39
39
- custom
40
40
container_name : app1
41
- domainname : schoolofdevops.com
41
+ domainname : codespaces.io
42
42
hostname : app1
43
43
app2 :
44
44
image : schoolofdevops/ubuntu-node:v1.1
@@ -48,7 +48,7 @@ services:
48
48
networks :
49
49
- custom
50
50
container_name : app2
51
- domainname : schoolofdevops.com
51
+ domainname : codespaces.io
52
52
hostname : app2
53
53
db :
54
54
image : schoolofdevops/centos-node:v1.1
@@ -58,5 +58,5 @@ services:
58
58
networks :
59
59
- custom
60
60
container_name : db
61
- domainname : schoolofdevops.com
61
+ domainname : codespaces.io
62
62
hostname : db
You can’t perform that action at this time.
0 commit comments