Skip to content
Open
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
33 changes: 20 additions & 13 deletions compose/compose.fake-data.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,22 @@
services:
scylla-server: # do not run scylla
entrypoint: ["echo", "DISABLED"]
restart: "no"
siren:
extends:
file: ../siren-base/compose.siren.yml
service: siren
scylla-server: # do not run scylla
entrypoint: ["echo", "DISABLED"]
restart: "no"
siren:
extends:
file: ../siren-base/compose.siren.yml
service: siren

calypso:
extends:
file: ./compose.calypso.yml
service: calypso
depends_on:
- siren
grafana:
extends:
file: ../siren-base/compose.grafana.yml
service: grafana
depends_on:
- siren

calypso:
extends:
file: ./compose.calypso.yml
service: calypso
depends_on:
- siren
53 changes: 30 additions & 23 deletions compose/compose.router.yml
Original file line number Diff line number Diff line change
@@ -1,27 +1,34 @@
services:
scylla-server:
depends_on:
- siren
environment:
- SCYLLA_SIREN_HOST_URL=siren:1883
- SCYLLA_BATCH_UPSERT_TIME=20
init: false
scylla-server:
depends_on:
- siren
environment:
- SCYLLA_SIREN_HOST_URL=siren:1883
- SCYLLA_BATCH_UPSERT_TIME=20
init: false

client:
extends:
file: ../angular-client/compose.client.yml
service: client
client:
extends:
file: ../angular-client/compose.client.yml
service: client

siren:
extends:
file: ../siren-base/compose.siren.yml
service: siren
grafana:
extends:
file: ../siren-base/compose.grafana.yml
service: client
depends_on:
- siren

siren-av:
network_mode: host
image: bluenviron/mediamtx:latest-ffmpeg
volumes:
- type: bind
source: ../siren-base/mediamtx.yml
target: /mediamtx.yml
read_only: true
siren:
extends:
file: ../siren-base/compose.siren.yml
service: siren

siren-av:
network_mode: host
image: bluenviron/mediamtx:latest-ffmpeg
volumes:
- type: bind
source: ../siren-base/mediamtx.yml
target: /mediamtx.yml
read_only: true
9 changes: 5 additions & 4 deletions compose/compose.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version: '3.8'
version: "3.8"

services:
odyssey-db:
Expand All @@ -7,14 +7,14 @@ services:
restart: unless-stopped
environment:
POSTGRES_HOST_AUTH_METHOD: trust
command:
command:
- "postgres"
- "-c"
- "shared_buffers=256MB"
ports:
- 5432:5432 # Exposed for external access if needed
- 5432:5432 # Exposed for external access if needed
expose:
- 5432 # Allow inter-container communication
- 5432 # Allow inter-container communication
volumes:
- db-data:/var/lib/postgresql/data
cpu_shares: 1024
Expand All @@ -40,3 +40,4 @@ services:

volumes:
db-data:
grafana_storage:
14 changes: 14 additions & 0 deletions siren-base/compose.grafana.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
services:
grafana:
image: grafana/grafana-oss
container_name: grafana
restart: unless-stopped
environment:
# increases the log level from info to debug
- GF_LOG_LEVEL=debug
- GF_PLUGINS_PREINSTALL=grafana-mqtt-datasource@@https://github.com/Northeastern-Electric-Racing/mqtt-datasource/releases/download/v1.2.0/grafana-mqtt-datasource-1.2.0.zip
- GF_PLUGINS_ALLOW_LOADING_UNSIGNED_PLUGINS=grafana-mqtt-datasource
ports:
- "3002:3000"
volumes:
- "grafana_storage:/var/lib/grafana"