-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
53 lines (52 loc) · 1.19 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
version: "3"
services:
mysql:
container_name: mysql_container
image: mysql:latest
ports:
- "3360:3306"
volumes:
- ./volumes/mysql/data:/var/lib/mysql
- ./volumes/mysql/init:/docker-entrypoint-initdb.d/:ro
environment:
- MYSQL_ROOT_PASSWORD=root
networks:
solar_network:
ipv4_address: 172.20.0.2
grafana:
container_name: grafana_container
image: grafana/grafana:6.5.0
ports:
- "3030:3000"
user: '1000:1000'
volumes:
- ./volumes/grafana:/var/lib/grafana
- ./volumes/grafana/init:/etc/grafana/provisioning
networks:
solar_network:
ipv4_address: 172.20.0.3
node-red:
container_name: nodered_container
image: nodered/node-red:latest
ports:
- "1880:1880"
volumes:
- ./volumes/node-red:/data
networks:
solar_network:
ipv4_address: 172.20.0.4
mosquitto:
container_name: mosquitto_container
image: eclipse-mosquitto
ports:
- "1883:1883"
volumes:
- "./volumes/mosquitto:/mosquitto"
networks:
solar_network:
ipv4_address: 172.20.0.5
networks:
solar_network:
ipam:
config:
- subnet: 172.20.0.0/24