-
Notifications
You must be signed in to change notification settings - Fork 10
/
docker-compose.yml
78 lines (77 loc) · 1.56 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
71
72
73
74
75
76
77
78
version: '2'
networks:
custom:
driver: bridge
ipam:
driver: default
config:
- subnet: 192.168.61.0/24
services:
control:
image: codespaces/ansible-control:2.9.17
ports:
- "8000:8000"
volumes:
- ./code:/workspace
networks:
custom:
ipv4_address: 192.168.61.10
dns: 8.8.8.8
domainname: codespaces.io
hostname: control
restart: always
lb:
image: codespaces/ansible-node-centos-6:v0.3.6
ports:
- "80:80"
networks:
custom:
ipv4_address: 192.168.61.11
dns: 8.8.8.8
domainname: codespaces.io
hostname: lb
restart: always
app1:
image: codespaces/ansible-node-centos-6:v0.3.6
ports:
- "81:80"
networks:
custom:
ipv4_address: 192.168.61.12
dns: 8.8.8.8
domainname: codespaces.io
hostname: app1
restart: always
app2:
image: codespaces/ansible-node-centos-6:v0.3.6
ports:
- "82:80"
networks:
custom:
ipv4_address: 192.168.61.13
dns: 8.8.8.8
domainname: codespaces.io
hostname: app2
restart: always
app3:
image: codespaces/nsible-node-ubuntu:18.04
ports:
- "83:80"
networks:
custom:
ipv4_address: 192.168.61.15
dns: 8.8.8.8
domainname: codespaces.io
hostname: app3
restart: always
db:
image: codespaces/ansible-node-centos-6:v0.3.6
ports:
- "3306:3306"
networks:
custom:
ipv4_address: 192.168.61.14
dns: 8.8.8.8
domainname: codespaces.io
hostname: db
restart: always