Skip to content

Commit

Permalink
feat: add tailscale module to main controller
Browse files Browse the repository at this point in the history
  • Loading branch information
activeshadow committed Mar 8, 2024
1 parent e1028f7 commit f3df5a7
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
4 changes: 4 additions & 0 deletions configs/ot-sim/main-controller.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,11 @@
<module name="modbus">ot-sim-modbus-module {{config_file}}</module>
<module name="dnp3">ot-sim-dnp3-module {{config_file}}</module>
<module name="node-red">ot-sim-node-red-module {{config_file}}</module>
<module name="tailscale">ot-sim-tailscale-module {{config_file}}</module>
</cpu>
<tailscale>
<accept-dns>false</accept-dns>
</tailscale>
<ground-truth>
<elastic opensearch="true">
<endpoint>http://opensearch:9200</endpoint>
Expand Down
7 changes: 7 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,17 +35,24 @@ services:
main-ctlr:
image: ghcr.io/patsec/ot-sim/ot-sim:main
init: true
cap_add:
- NET_ADMIN # for Tailscale
depends_on:
- yaw-ctlr
- anemometer
- blade-1
- blade-2
- blade-3
volumes:
- /lib/modules:/lib/modules:ro # for Tailscale
- /dev/net/tun:/dev/net/tun # for Tailscale
- ./configs/ot-sim/main-controller.xml:/etc/ot-sim/config.xml
- ./configs/ot-sim/node-red.json:/etc/node-red.json
ports:
- 1880:1880
environment:
- OTSIM_TAILSCALE_AUTHKEY=${OTSIM_TAILSCALE_AUTHKEY} # for Tailscale
hostname: ${HOSTNAME} # for Tailscale
networks:
vpc:
ipv4_address: 10.11.12.100
Expand Down

0 comments on commit f3df5a7

Please sign in to comment.