This repository has been archived by the owner on Jan 10, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
executable file
·143 lines (131 loc) · 3.55 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
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
version: '3'
services:
nginx:
container_name: SrvProxyWeb
image: francisjgarcia/nginx
ports:
- '80:80'
networks:
sri:
ipv4_address: 192.168.60.2
apache1:
container_name: SrvWeb1
image: francisjgarcia/apache
ports:
- '80'
volumes:
- '/root/proyecto_docker/apache/datos/web:/dockerweb:ro'
networks:
sri:
ipv4_address: 192.168.60.3
apache2:
container_name: SrvWeb2
image: francisjgarcia/apache
ports:
- '80'
volumes:
- '/root/proyecto_docker/apache/datos/web:/dockerweb:ro'
networks:
sri:
ipv4_address: 192.168.60.4
apache3:
container_name: SrvWeb3
image: francisjgarcia/apache
ports:
- '80'
volumes:
- '/root/proyecto_docker/apache/datos/web:/dockerweb:ro'
networks:
sri:
ipv4_address: 192.168.60.5
mysql:
container_name: SrvMySQL
image: francisjgarcia/mysql
ports:
- '3306:3306'
networks:
sri:
ipv4_address: 192.168.60.10
ftp:
container_name: SrvFTP
image: francisjgarcia/ftp
ports:
- '20-21:20-21'
- '10090-10100:10090-10100'
volumes:
- '/root/proyecto_docker/ftp/datos/ficheros:/home/vsftpd:rw'
networks:
sri:
ipv4_address: 192.168.60.20
postfix_reenviador:
container_name: SrvCorreoReenviador
image: francisjgarcia/postfixreenviador
ports:
- '25:25'
networks:
sri:
ipv4_address: 192.168.60.50
postfix_server:
container_name: SrvCorreoServer
image: francisjgarcia/postfixserver
ports:
- '2525:25'
networks:
sri:
ipv4_address: 192.168.60.51
openfire:
container_name: SrvMensajeria
image: sameersbn/openfire
ports:
- '9090:9090'
- '5222:5222'
networks:
sri:
ipv4_address: 192.168.60.100
prometheus:
container_name: SrvMonitorizador
image: prom/prometheus
ports:
- '9091:9090'
volumes:
- '/root/proyecto_docker/prometheus/datos/prometheus.yml:/etc/prometheus/prometheus.yml:ro'
command:
- --config.file=/etc/prometheus/prometheus.yml
networks:
sri:
ipv4_address: 192.168.60.200
grafana:
container_name: SrvMonitorizadorGrafico
image: grafana/grafana:3.0.0-beta7
ports:
- '3000:3000'
environment:
- GF_SECURITY_ADMIN_PASSWORD=bolson
depends_on:
- prometheus
networks:
sri:
ipv4_address: 192.168.60.201
prometheus_nodo_monitorizado:
container_name: NodoMonitorizado
image: prom/node-exporter
ports:
- '9100:9100'
volumes:
- '/proc:/host/proc'
- '/sys:/host/sys'
- '/:/rootfs'
environment:
- 'net="host" prom/node-exporter'
- 'collector.procfs /host/proc'
- 'collector.sysfs /host/proc'
networks:
sri:
ipv4_address: 192.168.60.254
networks:
sri:
driver: bridge
ipam:
driver: default
config:
- subnet: 192.168.60.0/24