2024-08-22 13:17:24 -03:00
|
|
|
# version: '3.8'
|
|
|
|
|
|
|
|
# services:
|
|
|
|
# xbnet-node:
|
|
|
|
# build: .
|
|
|
|
# container_name: xbnet_node
|
|
|
|
# privileged: true
|
|
|
|
# env_file: .env
|
|
|
|
# networks:
|
|
|
|
# # xbee_net:
|
|
|
|
# # ipv4_address: ${XBEE0_NET_SRC_IP} # Ensure this IP belongs to the xbee_net subnet
|
|
|
|
# # ipvlan_net:
|
|
|
|
# # ipv4_address: ${DEFAULT_IPVLAN_IP} # Assign an IP within the same range as your host's Wi-Fi
|
|
|
|
# macvlan_net:
|
|
|
|
# ipv4_address: ${DEFAULT_MACVLAN_IP} # Assign an IP within the same range as your host's Wi-Fi
|
|
|
|
|
|
|
|
|
|
|
|
# networks:
|
|
|
|
# # 1. Docker's internal way of communicating between host and containers - Support 2 way comms
|
|
|
|
# # xbee_net:
|
|
|
|
# # driver: bridge
|
|
|
|
# # ipam:
|
|
|
|
# # config:
|
|
|
|
# # - subnet: 192.168.2.0/24 # Ensure your xbnet IPs are in this range
|
|
|
|
|
|
|
|
# # 2. ipvlan working ok for comms from container to host, but not host to container
|
|
|
|
# # ipvlan_net:
|
|
|
|
# # driver: ipvlan
|
|
|
|
# # driver_opts:
|
|
|
|
# # mode: l3 # Use L3 mode, which is simpler for most setups
|
|
|
|
# # parent: wlp0s20f3 # This should be your host's Wi-Fi or Ethernet interface
|
|
|
|
# # ipam:
|
|
|
|
# # config:
|
|
|
|
# # - subnet: ${BASE_SUBNET}.0/24 # Match the Wi-Fi network range
|
|
|
|
# # gateway: ${DEFAULT_GATEWAY} # Your router's gateway
|
|
|
|
|
|
|
|
# # 3. macvlan not working for some reason
|
|
|
|
# macvlan_net:
|
|
|
|
# driver: macvlan
|
|
|
|
# driver_opts:
|
|
|
|
# parent: wlp0s20f3 # This should be your host's Wi-Fi interface
|
|
|
|
# ipam:
|
|
|
|
# config:
|
|
|
|
# - subnet: ${BASE_SUBNET}.0/24 # Match the Wi-Fi network range
|
|
|
|
# gateway: ${DEFAULT_GATEWAY} # Your router's gateway
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
##############################################################################
|
|
|
|
|
|
|
|
|
|
|
|
|
2024-08-08 14:11:30 -03:00
|
|
|
version: '3.8'
|
|
|
|
|
|
|
|
services:
|
2024-08-21 10:48:40 -03:00
|
|
|
xbnet-node:
|
2024-08-08 14:11:30 -03:00
|
|
|
build: .
|
2024-08-21 10:48:40 -03:00
|
|
|
container_name: xbnet_node
|
2024-08-08 14:11:30 -03:00
|
|
|
privileged: true
|
2024-09-04 14:26:59 -03:00
|
|
|
env_file:
|
|
|
|
- .env
|
2024-08-28 14:19:36 -03:00
|
|
|
command: bash /entrypoint.sh
|
2024-09-03 10:09:03 -03:00
|
|
|
# network_mode: "host"
|
|
|
|
|
|
|
|
|
|
|
|
|
2024-08-28 14:19:36 -03:00
|
|
|
# command: /usr/bin/supervisord -c /etc/supervisor/conf.d/supervisord.conf
|
2024-08-28 13:43:03 -03:00
|
|
|
# command: tail -f /dev/null
|
2024-08-28 12:07:33 -03:00
|
|
|
# networks:
|
|
|
|
# xbee_net:
|
|
|
|
# ipv4_address: ${XBEE_NET_SRC_IP} # Ensure this IP belongs to the xbee_net subnet
|
|
|
|
|
|
|
|
# networks:
|
|
|
|
# xbee_net:
|
|
|
|
# driver: bridge
|
|
|
|
# ipam:
|
|
|
|
# config:
|
|
|
|
# - subnet: ${BASE_SUBNET}.0/24 # Match the network's subnet
|
|
|
|
# gateway: ${DEFAULT_GATEWAY} # Gateway for central router
|