-
-
Notifications
You must be signed in to change notification settings - Fork 17
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
62 lines (58 loc) · 1.35 KB
/
docker-compose.yml
File metadata and controls
62 lines (58 loc) · 1.35 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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
volumes:
grafana_data:
timescaledb_data:
services:
grafana:
build:
context: .
dockerfile: ./docker/grafana/Dockerfile.grafana
restart: unless-stopped
ports:
- "3000:3000"
networks:
- mesh-bridge
volumes:
- grafana_data:/var/lib/grafana
- ./docker/grafana/provisioning:/etc/grafana/provisioning
depends_on:
- timescaledb
exporter:
build:
context: .
dockerfile: ./docker/exporter/Dockerfile.exporter
restart: unless-stopped
depends_on:
timescaledb:
condition: service_healthy
extra_hosts:
- "host.docker.internal:host-gateway"
env_file:
- .env
networks:
- mesh-bridge
timescaledb:
image: timescale/timescaledb:latest-pg16
restart: unless-stopped
networks:
- mesh-bridge
ports:
- "5432:5432"
volumes:
- timescaledb_data:/var/lib/postgresql/data
- ./docker/timescaledb/init.sql:/docker-entrypoint-initdb.d/init.sql
environment:
POSTGRES_USER: "postgres"
POSTGRES_PASSWORD: "postgres"
POSTGRES_DB: "meshtastic"
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres -d meshtastic"]
interval: 5s
timeout: 5s
retries: 5
networks:
mesh-bridge:
driver: bridge
enable_ipv6: true
ipam:
config:
- subnet: 2001:db8::/64