kopia lustrzana https://github.com/mate-dev/mmrelaynode
63 wiersze
2.1 KiB
YAML
63 wiersze
2.1 KiB
YAML
version: '3.8'
|
|
|
|
services:
|
|
mmrelaydevice:
|
|
build: device
|
|
image: mmrelaynode:latest
|
|
container_name: mmrelaynode-device
|
|
restart: unless-stopped
|
|
volumes:
|
|
- mesh:/home/mesh
|
|
ports:
|
|
- "4403:4403"
|
|
networks:
|
|
- mesh
|
|
entrypoint: ["sh", "-c", "meshtasticd"]
|
|
|
|
mmrelayapp:
|
|
build: app
|
|
image: mmrelayapp:latest
|
|
container_name: mmrelaynode-app
|
|
restart: unless-stopped
|
|
depends_on:
|
|
- mmrelaydevice
|
|
volumes:
|
|
- mesh:/home/mesh
|
|
networks:
|
|
- mesh
|
|
entrypoint: [ "bash", "-c", "entrypoint.sh" ]
|
|
environment:
|
|
##### Do not change these variables or the scripts will break, values will be hardcoded in the future #####
|
|
MESHTASTIC_CONNECTION_TYPE: "network" # "serial" or "network"
|
|
MESHTASTIC_HOST: "mmrelaydevice"
|
|
##### Change these variables to your needs #####
|
|
MATRIX_HOMESERVER: "https://example.matrix.org"
|
|
MATRIX_ACCESS_TOKEN: "your_access_token"
|
|
MATRIX_BOT_USER_ID: "@botuser:example.matrix.org"
|
|
MESHTASTIC_MESHNET_NAME: "Your Meshnet Name"
|
|
MESHTASTIC_BROADCAST_ENABLED: "true"
|
|
LOGGING_LEVEL: "info"
|
|
# Need at least 1 room & channel mapped, maximum 8
|
|
MATRIX_ROOMS_ID_1: "#someroomalias1:example.matrix.org"
|
|
MATRIX_ROOMS_MESHTASTIC_CHANNEL_1: "0"
|
|
# MATRIX_ROOMS_ID_2: "#someroomalias2:example.matrix.org"
|
|
# MATRIX_ROOMS_MESHTASTIC_CHANNEL_2: "1"
|
|
|
|
# Plugin environment variables
|
|
# HEALTH_PLUGIN_ACTIVE: "true"
|
|
# MAP_PLUGIN_ACTIVE: "true"
|
|
# NODES_PLUGIN_ACTIVE: "true"
|
|
|
|
# You can add as many MESHTASTIC_COMMAND_X variables as you need, they will be executed in order
|
|
MESHTASTIC_COMMAND_1: "--set-owner LongName --set-owner-short SHRT --seturl https://meshtastic.org/e/#CgMSAQESDAgBOAFAA0gBUB5oAQ"
|
|
MESHTASTIC_COMMAND_2: "--set mqtt.enabled true --set mqtt.address mqtt.meshtastic.org --set mqtt.username meshdev --set mqtt.password large4cats"
|
|
MESHTASTIC_COMMAND_3: "--ch-set uplink_enabled true --ch-set downlink_enabled true --ch-index 0"
|
|
|
|
|
|
networks:
|
|
mesh:
|
|
driver: bridge
|
|
|
|
volumes:
|
|
mesh:
|