-
Notifications
You must be signed in to change notification settings - Fork 52
/
docker-compose.yml
51 lines (46 loc) · 1.6 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
version: "3.2"
services:
tiled:
image: ghcr.io/bluesky/tiled:v0.1.0b11
environment:
- TILED_SINGLE_USER_API_KEY=${TILED_SINGLE_USER_API_KEY}
ports:
- 8000:8000
restart: unless-stopped
# Below we additionally configure monitoring with Prometheus and Grafana.
# This is optional; it is not required for Tiled to function.
prometheus:
image: docker.io/prom/prometheus:v2.42.0
volumes:
- ./monitoring_example/prometheus/prometheus.yml:/etc/prometheus/prometheus.yml
command:
- '--config.file=/etc/prometheus/prometheus.yml'
- '--storage.tsdb.path=/prometheus'
- '--web.console.libraries=/usr/share/prometheus/console_libraries'
- '--web.console.templates=/usr/share/prometheus/consoles'
networks:
- backend
restart: unless-stopped
grafana:
image: docker.io/grafana/grafana:8.2.6
depends_on:
- prometheus
ports:
- 3000:3000
volumes:
- ./monitoring_example/grafana/provisioning/datasources:/etc/grafana/provisioning/datasources
- ./monitoring_example/grafana/main.yml:/etc/grafana/provisioning/dashboards/main.yml
- ./monitoring_example/grafana/dashboards:/var/lib/grafana/dashboards
networks:
- backend
restart: unless-stopped
# Disable Grafana login screen for dev/demo.
# DO NOT USE THESE SETTINGS IN PRODUCTION.
environment:
GF_SECURITY_DISABLE_INITIAL_ADMIN_CREATION: "true"
GF_AUTH_ANONYMOUS_ENABLED: "true"
GF_AUTH_ANONYMOUS_ORG_ROLE: "Admin"
GF_AUTH_DISABLE_SIGNOUT_MENU: "true"
GF_AUTH_DISABLE_LOGIN_FORM: "true"
networks:
backend: {}