Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion config/datasources/grafana-datasources.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@ datasources:
host: 'timescaledb:5432'
user: 'postgres'
database: 'hermes'
hermesUrl: 'host.docker.internal:6880'
hermesUrl: 'hermes:6880'
secureJsonData:
password: 'password'
14 changes: 14 additions & 0 deletions config/hermes/hermes.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
[
{
"name": "TimescaleDB",
"provider": "TimescaleDB",
"settings": {
"host": "timescaledb:5432",
"user": "postgres",
"password": "password",
"database": "hermes",
"events": true,
"telemetry": true
}
}
]
22 changes: 22 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,21 @@
services:
hermes:
image: ghcr.io/nasa/hermes:latest
command:
- --bind-type
- tcp
- --bind
- 0.0.0.0:6880
- --root
- /etc/hermes
- --start
ports:
- "6880:6880"
volumes:
- ./config/hermes:/etc/hermes
depends_on:
timescaledb:
condition: service_healthy
timescaledb:
image: timescale/timescaledb:latest-pg16
environment:
Expand All @@ -9,6 +26,11 @@ services:
- 5432:5432/tcp
volumes:
- timescale-data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U $$POSTGRES_USER -d $$POSTGRES_DB"]
interval: 5s
timeout: 5s
retries: 5
grafana:
image: grafana/grafana:latest
restart: unless-stopped
Expand Down
Loading