-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
136 lines (128 loc) · 3.96 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
name: docker-edge-computing
services:
node-red:
container_name: NodeRED
build: ./node-red
restart: always
depends_on:
- influxdb
ports:
- ${NODE_RED_PORT}:1880
volumes:
- node-red-data:/data
- node-red-pallets:/data/node_modules
networks:
- data-processing-network
grafana:
container_name: Grafana
build: ./grafana
restart: always
depends_on:
- node-red
- influxdb
ports:
- ${GRAFANA_PORT}:3000
environment:
- GF_SECURITY_ADMIN_USER=${GRAFANA_SECURITY_ADMIN_USER}
- GF_SECURITY_ADMIN_PASSWORD=${GRAFANA_SECURITY_ADMIN_PASSWORD}
- GF_PROVISIONING_INFLUXDB_ORG=${INFLUXDB_INIT_ORG}
- GF_PROVISIONING_INFLUXDB_BUCKET=${INFLUXDB_INIT_BUCKET}
- GF_PROVISIONING_INFLUXDB_TOKEN=${INFLUXDB_INIT_ADMIN_TOKEN}
volumes:
- grafana-data:/var/lib/grafana
- grafana-plugins:/var/lib/grafana/plugins
- grafana-config:/etc/grafana
- grafana-prov-datasources:/etc/grafana/provisioning/datasources
networks:
- data-processing-network
influxdb:
container_name: InfluxDB
image: influxdb:2.6.1
restart: always
ports:
- ${INFLUXDB_PORT}:8086
environment:
- DOCKER_INFLUXDB_INIT_MODE=setup
- DOCKER_INFLUXDB_INIT_USERNAME=${INFLUXDB_INIT_USERNAME}
- DOCKER_INFLUXDB_INIT_PASSWORD=${INFLUXDB_INIT_PASSWORD}
- DOCKER_INFLUXDB_INIT_ORG=${INFLUXDB_INIT_ORG}
- DOCKER_INFLUXDB_INIT_BUCKET=${INFLUXDB_INIT_BUCKET}
- DOCKER_INFLUXDB_INIT_ADMIN_TOKEN=${INFLUXDB_INIT_ADMIN_TOKEN}
volumes:
- influxdb-data:/var/lib/influxdb2
- influxdb-config:/etc/influxdb2
networks:
- data-processing-network
http-server:
container_name: WebServer
build: ./httpd
restart: always
ports:
- ${HTTPD_PORT}:80
volumes:
- www-files:/usr/local/apache2/htdocs
networks:
- docker-network
ftp-server:
container_name: FileServer
build: ./pure-ftpd
restart: always
ports:
- ${PURE_FTPD_DATA_PORT}:20
- ${PURE_FTPD_CONTROL_PORT}:21
- "${PURE_FTPD_MIN_PASV_PORT}-${PURE_FTPD_MAX_PASV_PORT}:\
${PURE_FTPD_MIN_PASV_PORT}-${PURE_FTPD_MAX_PASV_PORT}"
volumes:
- pure-ftpd-data:/etc/pureftpd
- www-files:/ftp/www
environment:
- PUBLIC_HOST=${PURE_FTPD_PUBLIC_HOST}
- MIN_PASV_PORT=${PURE_FTPD_MIN_PASV_PORT}
- MAX_PASV_PORT=${PURE_FTPD_MAX_PASV_PORT}
networks:
- docker-network
dns-server:
container_name: NameServer
build: ./bind9
restart: always
environment:
- BIND9_USER=root
- TZ=America/Sao_Paulo
ports:
- ${BIND9_PORT}:53/tcp
- ${BIND9_PORT}:53/udp
volumes:
- dns-config-data:/etc/bind
- dns-cache-data:/var/cache/bind
volumes:
node-red-data:
name: NodeREDData
node-red-pallets:
name: NodeREDPallets
grafana-data:
name: GrafanaData
grafana-plugins:
name: GrafanaPlugins
grafana-config:
name: GrafanaConfig
grafana-prov-datasources:
name: GrafanaProvDatasources
influxdb-data:
name: InfluxDBData
influxdb-config:
name: InfluxDBConfig
pure-ftpd-data:
name: PureFTPdData
www-files:
name: WebFiles
dns-config-data:
name: DNSConfigData
dns-cache-data:
name: DNSCacheData
networks:
docker-network:
name: DockerNetwork
driver: bridge
data-processing-network:
name: DataProcessingNetwork
driver: bridge