-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
53 lines (50 loc) · 1.67 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.9"
services:
cea-os:
build: . #builds image from Dockerfile in current directory
container_name: cea_os
ports:
- 23267:23267
depends_on:
- influxdb
networks:
- grafana_network
influxdb:
image: influxdb:1.8
ports:
- 8086:8086
container_name: influxdb
restart: always #if something happpens in container, it can start automatically
networks:
- grafana_network #make sure the same as grafana container
volumes:
- type: bind
source: ./docker_data/influxdb_data
target: /var/lib/influxdb
environment:
- INFLUXDB_DB=grafana #creates a database when we create container
- INFLUXDB_USER=grafana #creates a user called "grafana"
- INFLUXDB_USER_PASSWORD=password
- INFLUXDB_ADMIN_ENABLED=true
- INFLUXDB_ADMIN_USER=admin
- INFLUXDB_ADMIN_PASSWORD=password
grafana:
image: grafana/grafana
user: root #added root privileges for bind mount
ports:
- 3000:3000
container_name: grafana
restart: always
networks:
- grafana_network #use for influxdb, same network
volumes:
- type: bind
source: ./docker_data/grafana_data
target: /var/lib/grafana
environment:
- GF_INSTALL_PLUGINS=volkovlabs-image-panel
- GF_INSTALL_PLUGINS=cloudspout-button-panel
depends_on:
- influxdb
networks:
grafana_network: