-
Notifications
You must be signed in to change notification settings - Fork 19
Expand file tree
/
Copy pathdocker-compose.historian.yml
More file actions
40 lines (39 loc) · 1.04 KB
/
docker-compose.historian.yml
File metadata and controls
40 lines (39 loc) · 1.04 KB
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
version: "3.4"
services:
worker:
environment:
- HISTORIAN_ENABLE=true
influxdb:
container_name: alfalfa_influxdb
image: influxdb:1.8
hostname: ${INFLUXDB_HOST}
ports:
- "8086:8086"
environment:
- INFLUXDB_DB
- INFLUXDB_HTTP_AUTH_ENABLED=${INFLUXDB_HTTP_AUTH_ENABLED}
- INFLUXDB_ADMIN_USER=${INFLUXDB_USERNAME}
- INFLUXDB_ADMIN_PASSWORD=${INFLUXDB_PASSWORD}
restart: always
grafana:
container_name: alfalfa_grafana
build:
context: "./grafana"
args:
- INFLUXDB_ADMIN_USER=${INFLUXDB_USERNAME}
- INFLUXDB_ADMIN_PASSWORD=${INFLUXDB_PASSWORD}
- INFLUXDB_DB
- INFLUXDB_HOST
hostname: grafana
image: ${REGISTRY_BASE_URI}/grafana:${VERSION_TAG}
ports:
- "3000:3000"
environment:
- GF_SECURITY_ADMIN_USER
- GF_SECURITY_ADMIN_PASSWORD
- INFLUXDB_DB
- INFLUXDB_HOST
- INFLUXDB_ADMIN_USER=${INFLUXDB_USERNAME}
- INFLUXDB_ADMIN_PASSWORD=${INFLUXDB_PASSWORD}
depends_on:
- ${INFLUXDB_HOST}