Open TawfikDaim opened 1 week ago
`version: "3.8" services:
frigate: container_name: frigate image: ghcr.io/blakeblackshear/frigate:stable
# Example for eight cameras detecting at 1280x720, including logs
# $ python -c 'print("{:.2f}MB".format(((1280 * 720 * 1.5 * 9 + 270480) / 1048576) * 8 + 30))'
# 126.99MB
# update for your cameras based on calculation above
shm_size: "5484mb"
restart: always
volumes:
#Mounting a remote volume:
#sudo apt install sshfs
#sudo mkdir /mnt/
#sudo sshfs -o allow_other Tawfik@192.168.1.100:/share/Dyar153/recordings/ /home/tawfik/Videos/
# can use this on a remote server or on same server at a specific folder
- /home/tawfik/automation/frigate/frigate.yaml:/config/config.yaml
- /home/tawfik/automation/frigate/:/media/frigate/
- type: tmpfs # Optional: 1GB of memory, reduces SSD/SD Card wear
target: /tmp/cache
tmpfs:
size: 1000000000
# if using as a local server then will be
# using same logic can get the config file from a emote server or on same server at a specific folder
#- /home/tawfik/frigate/frigate.yaml:/config/config.yaml
#- /home/tawfik/frigate/media:/media/frigate
#- //192.168.1.100/dyar153/recordings:/media/frigate
ports:
- 5000:5000
- 1935:1935
environment:
TZ: Africa/Cairo
FRIGATE_RTSP_PASSWORD: Newipad1
Path: /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
mqtt5: image: eclipse-mosquitto container_name: mqtt5 ports:
z2mqtt: container_name: z2mqtt image: koenkk/zigbee2mqtt restart: always
devices:
- /dev/ttyACM0:/dev/ttyACM0
volumes:
#Mounting a remote volume:
#sudo apt install sshfs
#sudo mkdir /mnt/<folder name>
#sudo sshfs -o allow_other Tawfik@192.168.1.100:/share/Dyar153/recordings/ /home/tawfik/Videos/
# can use this on a remote server or on same server at a specific folder
- /home/tawfik/automation/z2mqtt:/app/data
- /run/udev:/run/udev:ro
# if using as a local server then will be
# using same logic can get the config file from a emote server or on same server at a specific folder
#- /home/tawfik/frigate/frigate.yaml:/config/config.yaml
#- /home/tawfik/frigate/media:/media/frigate
#- //192.168.1.100/dyar153/recordings:/media/frigate
ports:
- 8080:8080
environment:
TZ: Africa/Cairo
#FRIGATE_RTSP_PASSWORD: Newipad1!
#Path: /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
# networks:
# pihole_net:
# ipv4_address: 10.0.0.3
# dns:
# - 127.0.0.1
homeassistant: container_name: homeassistant image: "ghcr.io/home-assistant/home-assistant:stable" volumes:
duckdns: image: lscr.io/linuxserver/duckdns:latest container_name: duckdns network_mode: host
environment:
- PUID=1000 #optional
- PGID=1000 #optional
- TZ=Africa/Cairo
- DOMAINS = dyararco.duckdns.org
- UPDATE_IP=ipv4
- TOKEN = 4ebd937a-2ac0-46ab-a28b-2a8633ec8529
- LOG_FILE=true #optional
volumes:
- /home/tawfik/automation/duckdns/appdata/config:/config #optional
restart: unless-stopped
# restart: unless-stopped
# - PUID=1000
# - PGID=1000
# - TZ=Etc/UTC
#ports:
# - 8200:8200
default_config:
lovelace: resources:
api: alexa: smart_home:
alarm_control_panel:
notify:
bluetooth:
frontend: themes: !include_dir_merge_named themes
automation: !include automations.yaml script: !include scripts.yaml scene: !include scenes.yaml
command_line:
shell_command:
pushupdates_to_github: /bin/bash /config/pushupdates.sh backup: /bin/bash /config/backup.sh
smartir:
#device_code: 9507 #this device_code is the .json file you produced by learning IR codes for your climate device
#controller_data: zigbee2mqtt/zs06-ir/set
homeassistant: legacy_entity_attributes: true legacy_triggers: true frontend: true mqtt: base_topic: zigbee2mqtt server: mqqt://10.195.1.51:1883 availability: active: timeout: 30 passive: timeout: 1500 device_options: homeassistant: last_seen: enabled_by_default: true serial: port: /dev/ttyACM0 adapter: ezsp advanced: network_key:
allow_anonymous true listener 1883 listener 9001 protocol websockets