Last active
July 12, 2023 12:26
-
-
Save weizsw/c3349aa8241f6aa1fcb10438a491656c to your computer and use it in GitHub Desktop.
homelab
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
| docker run --name adguardhome\ | |
| --restart unless-stopped\ | |
| -v ~/Development/adguardhome:/opt/adguardhome/work\ | |
| -v ~/Development/adguardhome:/opt/adguardhome/conf\ | |
| -p 53:53/tcp -p 53:53/udp\ | |
| -p 67:67/udp -p 68:68/udp\ | |
| -p 3000:3000/tcp\ | |
| -p 853:853/tcp\ | |
| -p 784:784/udp -p 853:853/udp -p 8853:8853/udp\ | |
| -p 5443:5443/tcp -p 5443:5443/udp\ | |
| -d adguard/adguardhome |
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
| docker run -d --restart=always -v /Users/maverick/Development/alist:/opt/alist/data -e TZ=Asia/Shanghai -p 5244:5244 -e PUID=0 -e PGID=0 -e UMASK=022 --name="alist" xhofe/alist:latest |
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
| docker run -d --restart=always -e TZ=Asia/Shanghai -p 1338:1338 --name="chatgpt" ramonvc/freegpt-webui |
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
| docker run -d \ | |
| --name homeassistant \ | |
| --privileged \ | |
| --restart=unless-stopped \ | |
| --network=host \ | |
| -e TZ=Asia/Shanghai \ | |
| -v /Users/maverick/Development/homeassistant/config:/config \ | |
| -v ~/.ssh:/root/.ssh \ | |
| homeassistant/home-assistant | |
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.1" | |
| services: | |
| jackett: | |
| image: lscr.io/linuxserver/jackett:latest | |
| container_name: jackett | |
| environment: | |
| - PUID=1000 | |
| - PGID=1000 | |
| - TZ=Asia/Shanghai | |
| - AUTO_UPDATE=true #optional | |
| - RUN_OPTS= #optional | |
| volumes: | |
| - ./data:/config | |
| - ./blackhole:/downloads | |
| ports: | |
| - 9117:9117 | |
| restart: unless-stopped |
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: '3.8' | |
| services: | |
| app: | |
| image: 'jc21/nginx-proxy-manager:latest' | |
| restart: unless-stopped | |
| ports: | |
| - '80:80' | |
| - '81:81' | |
| - '443:443' | |
| volumes: | |
| - ./data:/data | |
| - ./letsencrypt:/etc/letsencrypt |
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
| docker run -d -p 8000:8000 -p 9443:9443 --name portainer --restart=always -e TZ=Asia/Shanghai -v /var/run/docker.sock:/var/run/docker.sock -v portainer_data:/data portainer/portainer-ce:latest |
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
| #!/bin/sh | |
| RCLONE_CONFIG_PATH=~/.config/rclone/rclone.conf | |
| MOUNT_POINT=/Users/maverick/Alist | |
| REMOTE_NAME=alist | |
| sleep 5 | |
| # Start a new screen session and run the rclone command in it | |
| screen -d -m /usr/local/bin/rclone mount --config $RCLONE_CONFIG_PATH --allow-non-empty --allow-other --vfs-cache-mode writes --header "Referer:" $REMOTE_NAME: $MOUNT_POINT | |
| # Sleep for 5 seconds to allow the rclone command to start | |
| sleep 5 | |
| # List the screen sessions to confirm that the rclone session is running | |
| # screen -ls |
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.1" | |
| services: | |
| sonarr: | |
| image: lscr.io/linuxserver/sonarr:latest | |
| container_name: sonarr | |
| environment: | |
| - PUID=1000 | |
| - PGID=1000 | |
| - TZ=Asia/Shanghai | |
| volumes: | |
| - ./data/config:/config | |
| - ./data/libraries:/libraries #optional | |
| - ./data/downloadclient-downloads:/downloads #optional | |
| ports: | |
| - 8989:8989 | |
| restart: unless-stopped |
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
| docker run -d --restart=always -p 3001:3001 -v uptime-kuma:/app/data -v /var/run/docker.sock:/var/run/docker.sock --name uptime-kuma louislam/uptime-kuma:1 |
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
| docker run -d \ | |
| --name watchtower \ | |
| --restart=unless-stopped \ | |
| -v /var/run/docker.sock:/var/run/docker.sock \ | |
| -e TZ=Asia/Shanghai \ | |
| # -e WATCHTOWER_NOTIFICATION_URL="bark://:[email protected] slack://token@C05EAAYKDJS" \ | |
| -e WATCHTOWER_NOTIFICATION_TEMPLATE="{{range .}}{{.Time.Format \"2006-01-02 15:04:05\"}} ({{.Level}}): {{.Message}}{{println}}{{end}}" \ | |
| containrrr/watchtower |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment