-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy pathdocker-compose.yml
63 lines (57 loc) · 1.97 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
# Derived from https://github.com/hiveeyes/terkin-datalogger/pull/82 by @WSt89.
version: '3'
services:
mosquitto:
image: eclipse-mosquitto:${MOSQUITTO_VERSION}
# https://github.com/eclipse/mosquitto/issues/2040#issuecomment-792349744
command: mosquitto -c /mosquitto-no-auth.conf
restart: unless-stopped
ports:
- ${MOSQUITTO_MQTT_PORT}:1883
- ${MOSQUITTO_WS_PORT}:9001
volumes:
- ${PATH_VAR_LIB}/mosquitto:/mosquitto/data
- ${PATH_VAR_LOG}/mosquitto:/mosquitto/log
# https://github.com/robcowart/docker_compose_cookbook/blob/master/STACKS/influx_oss/docker-compose.yml#L21
influxdb:
image: influxdb:${INFLUXDB_VERSION}
restart: unless-stopped
ports:
- ${INFLUXDB_HTTP_PORT}:8086
- ${INFLUXDB_RPC_PORT}:8088
volumes:
- ${PATH_VAR_LIB}/influxdb:/var/lib/influxdb
environment:
INFLUXDB_HTTP_AUTH_ENABLED: 'false'
INFLUXDB_ADMIN_USER: root
INFLUXDB_ADMIN_PASSWORD: root
INFLUXDB_USER: root
INFLUXDB_PASSWORD: root
INFLUXDB_REPORTING_DISABLED: 'true'
mongodb:
image: mongo:${MONGODB_VERSION}
restart: unless-stopped
ports:
- ${MONGODB_PORT}:27017
volumes:
- ${PATH_VAR_LIB}/mongodb:/data/db
- ${PATH_VAR_LOG}/mongodb:/var/log/mongodb
# https://community.grafana.com/t/influxdb-datasource-in-docker-network-what-url/28732
grafana:
image: grafana/grafana:${GRAFANA_VERSION}
# https://community.grafana.com/t/new-docker-install-with-persistent-storage-permission-problem/10896/15
user: "${UID}:${GID}"
restart: unless-stopped
ports:
- ${GRAFANA_PORT}:3000
volumes:
- ${PATH_VAR_LIB}/grafana:/var/lib/grafana
- ${PATH_VAR_LOG}/grafana:/var/log/grafana
environment:
GF_SECURITY_ADMIN_USER: admin
GF_SECURITY_ADMIN_PASSWORD: admin
GF_DEFAULT_INSTANCE_NAME: Kotori Grafana
GF_ANALYTICS_REPORTING_ENABLED: 'false'
GF_SECURITY_DISABLE_GRAVATAR: 'true'
depends_on:
- influxdb