-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
48 lines (45 loc) · 1.1 KB
/
docker-compose.yml
File metadata and controls
48 lines (45 loc) · 1.1 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
services:
# TimescaleDB + PostGIS
timescaledb:
image: timescale/timescaledb-ha:pg16
container_name: rftrack-db
environment:
POSTGRES_USER: rftrack
POSTGRES_PASSWORD: hackathon2024
POSTGRES_DB: rftrack
ports:
- "5432:5432"
volumes:
- timescale_data:/home/postgres/pgdata/data
- ./init.sql:/docker-entrypoint-initdb.d/init.sql
healthcheck:
test: ["CMD-SHELL", "pg_isready -U rftrack -d rftrack"]
interval: 5s
timeout: 5s
retries: 5
restart: unless-stopped
# MQTT Broker
mosquitto:
image: eclipse-mosquitto:2
container_name: rftrack-mqtt
ports:
- "1883:1883"
- "9001:9001"
volumes:
- ./mosquitto.conf:/mosquitto/config/mosquitto.conf
- mosquitto_data:/mosquitto/data
- mosquitto_log:/mosquitto/log
restart: unless-stopped
# Database admin UI (optional)
adminer:
image: adminer
container_name: rftrack-adminer
ports:
- "8081:8080"
depends_on:
- timescaledb
restart: unless-stopped
volumes:
timescale_data:
mosquitto_data:
mosquitto_log: