Skip to content

Instantly share code, notes, and snippets.

View thanhtantran's full-sized avatar

Orange Pi Vietnam thanhtantran

View GitHub Profile
@thanhtantran
thanhtantran / Wordpress-Simple.yml
Created January 26, 2022 05:09
Wordpress simple deploy on docker stack
version: '3'
services:
db:
image: mariadb
volumes:
- db_data:/var/lib/mysql
restart: always
environment:
MYSQL_ROOT_PASSWORD: wordpress
@thanhtantran
thanhtantran / hoobs-install.sh
Created October 13, 2022 15:33
Install HOOBS on Orange Pi
#!/bin/bash
export DEBIAN_FRONTEND=noninteractive
DISTRO="bullseye"
RELEASE="stable"
NODEREPO="node_16.x"
try() {
bash -c "$1"
@thanhtantran
thanhtantran / aapanel-install.sh
Created October 21, 2022 04:03
aapanel orange pi 3 lts and orange pi 4 lts install
#!/bin/bash
PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:~/bin
export PATH
LANG=en_US.UTF-8
panelPort="7800"
if [ $(whoami) != "root" ]; then
echo "Please use the [root] user to execute the aapanel installation script!"
exit 1
fi
@thanhtantran
thanhtantran / docker-compose.yaml
Created November 25, 2024 10:06
frigate docker compose template
services:
frigate:
container_name: frigate
privileged: true # this may not be necessary for all setups
restart: unless-stopped
image: ghcr.io/blakeblackshear/frigate:stable-rk
shm_size: "128mb" # update for your cameras based on calculation above
devices:
- /dev/dri
- /dev/dma_heap
@thanhtantran
thanhtantran / config.yaml
Last active November 25, 2024 10:29
frigate sample config
mqtt:
enabled: false
cameras:
Office1: # <------ Name the camera
enabled: true
ffmpeg:
inputs:
- path: rtsp://username:password@192.168.10.29:554/11 # <----- The stream you want to use for detection
roles:
@thanhtantran
thanhtantran / docker-compose.yaml
Created December 3, 2024 06:12
ShinobiPro docker compose
services:
shinobi-image:
container_name: shinobi-pro
ports:
- 8081:8080/tcp
volumes:
- $HOME/shinobi-docker/streams:/dev/shm/streams:rw
- $HOME/shinobi-docker/config:/config:rw
- $HOME/shinobi-docker/customAutoLoad:/home/Shinobi/libs/customAutoLoad:rw
- $HOME/shinobi-docker/database:/var/lib/mysql:rw
@thanhtantran
thanhtantran / load_balancer.conf
Created December 15, 2024 15:03
Nginx load_balancer exampls
http {
upstream backend_servers {
server 192.168.100.101;
server 192.168.100.102;
server 192.168.100.103;
}
server {
listen 80;
@thanhtantran
thanhtantran / docker-compose.yml
Created January 12, 2025 07:31
excalidraw arm64 docker compose
services:
excalidraw:
container_name: excalidraw
ports:
- "80:80"
restart: on-failure
stdin_open: true
healthcheck:
disable: true
environment:
@thanhtantran
thanhtantran / docker-compose.yml
Created January 16, 2025 10:44
paperless-ngx Orange PI 5
# Author : Tran Thanh Tan
# To install and update paperless with this file, do the following:
#
# - Copy this file as 'docker-compose.yml' and the files 'docker-compose.env'
# and '.env' into a folder.
# - Run 'docker compose pull'.
# - Run 'docker compose run --rm webserver createsuperuser' to create a user.
# - Run 'docker compose up -d'.
#
# For more extensive installation and update instructions, refer to the
@thanhtantran
thanhtantran / japan_travel_guide.md
Created April 6, 2025 16:37
Japan travel 10-Day Trip to Kyoto, Osaka, and Tokyo (Shibuya) - June 2025