Add docker-compose2.yaml
This commit is contained in:
parent
825ee7ed2c
commit
bdd0cfd0ad
1 changed files with 50 additions and 0 deletions
50
docker-compose2.yaml
Normal file
50
docker-compose2.yaml
Normal file
|
|
@ -0,0 +1,50 @@
|
|||
services:
|
||||
grafana:
|
||||
image: grafana/grafana:8.2.2-ubuntu
|
||||
hostname: ${DOCKERHOSTNAME}
|
||||
ports:
|
||||
- 8087:3000
|
||||
container_name: grafana
|
||||
environment:
|
||||
- GF_INSTALL_PLUGINS=${GRAFANA_GF_INSTALL_PLUGINS}
|
||||
- TZ=Europe/Amsterdam
|
||||
logging:
|
||||
driver: json-file
|
||||
options:
|
||||
max-file: ${DOCKERLOGGING_MAXFILE}
|
||||
max-size: ${DOCKERLOGGING_MAXSIZE}
|
||||
restart: unless-stopped
|
||||
volumes:
|
||||
- /etc/localtime:/etc/localtime:ro
|
||||
- ./grafana:/var/lib/grafana
|
||||
- ./data:/storage
|
||||
|
||||
mqtt:
|
||||
image: eclipse-mosquitto:2.0.14
|
||||
ports:
|
||||
- 1883:1883
|
||||
restart: unless-stopped
|
||||
volumes:
|
||||
- ./data/mqtt:/mosquitto/config:ro
|
||||
- ./data/mqtt:/mosquitto/log
|
||||
- ./data/mqtt:/mosquitto/data
|
||||
|
||||
influxdb:
|
||||
image: influxdb:1.8
|
||||
hostname: influx
|
||||
ports:
|
||||
- 8086:8086
|
||||
container_name: influxdb
|
||||
environment:
|
||||
- TZ=Europe/Amsterdam
|
||||
logging:
|
||||
driver: json-file
|
||||
options:
|
||||
max-file: ${DOCKERLOGGING_MAXFILE}
|
||||
max-size: ${DOCKERLOGGING_MAXSIZE}
|
||||
restart: unless-stopped
|
||||
volumes:
|
||||
- /etc/localtime:/etc/localtime:ro
|
||||
- ./influx:/var/lib/influxdb
|
||||
- ./data:/storage
|
||||
|
||||
Loading…
Reference in a new issue