Last active
January 8, 2021 14:40
-
-
Save Craigson/55973bd504b35efa6bbad46a86a94f44 to your computer and use it in GitHub Desktop.
Docker compose file for the Publisher app in the Syntropy Stack MQTT network example
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| version: "2" | |
| services: | |
| syntropynet-agent: | |
| image: syntropynet/agent:stable | |
| hostname: syntropynet-agent | |
| container_name: syntropynet-agent | |
| cap_add: | |
| - NET_ADMIN | |
| - SYS_MODULE | |
| environment: | |
| - SYNTROPY_API_KEY=<YOUR_API_KEY> # <==== Your token goes here | |
| - SYNTROPY_NETWORK_API=docker | |
| - SYNTROPY_AGENT_NAME="mqt_1_publisher" | |
| - SYNTROPY_PROVIDER=<PROVIDER_VALUE> # <==== change this | |
| - SYNTROPY_TAGS="mqtt" | |
| - SYNTROPY_SERVICES_STATUS=false # default is false | |
| restart: always | |
| network_mode: "host" | |
| volumes: | |
| - /var/run/docker.sock:/var/run/docker.sock:ro | |
| devices: | |
| - "/dev/net/tun:/dev/net/tun" | |
| nodejs-publisher: | |
| container_name: nodejs-publisher | |
| build: . | |
| depends_on: | |
| - syntropynet-agent | |
| # subnet will be 172.21.0.0 | |
| networks: | |
| default: | |
| driver: bridge | |
| ipam: | |
| config: | |
| - subnet: 172.21.0.0/24 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment