This commit is contained in:
2025-11-06 01:58:02 +08:00
parent 6d61b2b188
commit 53b9cccd51
5 changed files with 10 additions and 18 deletions

View File

@@ -5,15 +5,12 @@ services:
aria2: aria2:
image: p3terx/aria2-pro image: p3terx/aria2-pro
container_name: aria2 container_name: aria2
# haven't test. I just keep using individual containers.
logging: logging:
driver: json-file driver: json-file
options: options:
max-size: 1m max-size: 1m
volumes: volumes:
- $HOME/.config/aria2:/config - /opt/aria2:/config
# Don't really understand differences between attaching with bind-mounting =.=
# - $HOME/_downloads:/downloads
- type: bind - type: bind
source: $HOME/_downloads source: $HOME/_downloads
target: /downloads target: /downloads

View File

@@ -1,7 +1,7 @@
FROM mcr.microsoft.com/dotnet/aspnet:9.0 AS prepare FROM mcr.microsoft.com/dotnet/aspnet:9.0 AS prepare
ARG REPO=github.com/frg2089/BiliLive.Observer TARGET_VER=0.0.9 ARG REPO=github.com/frg2089/BiliLive.Observer TARGET_VER=0.0.9
ADD https://$REPO/releases/download/v$TARGET_VER/BiliLive.Observer.zip /mnt/ # ADD https://$REPO/releases/download/v$TARGET_VER/BiliLive.Observer.zip /mnt/
# ADD https://$REPO/releases/latest/download/BiliLive.Observer.zip /mnt/ ADD https://$REPO/releases/latest/download/BiliLive.Observer.zip /mnt/
RUN apt update && apt install -y unzip && unzip -o /mnt/BiliLive.Observer.zip -d /package RUN apt update && apt install -y unzip && unzip -o /mnt/BiliLive.Observer.zip -d /package
FROM mcr.microsoft.com/dotnet/aspnet:9.0 FROM mcr.microsoft.com/dotnet/aspnet:9.0

View File

@@ -1,12 +1,10 @@
#!/bin/bash #!/bin/bash
# may be able to `sudo` the whole script? # may be able to `sudo` the whole script?
docker build -t frg2089/bililive:0.0.9 . docker build -t frg2089/bililive:latest .
docker run -d --name obs-bililive -p 15000:5000 frg2089/bililive:0.0.9 docker run -d --name obs-bililive -p 15000:5000 frg2089/bililive:latest
[[ -n $(docker ps | grep 'obs-bililive') ]] && ( [[ -n $(docker ps | grep 'obs-bililive') ]] && docker logs obs-bililive || {
docker logs obs-bililive
) || {
echo "[ERROR] Failed to start bililive observer service." echo "[ERROR] Failed to start bililive observer service."
exit 1 exit 1
} }

View File

@@ -4,14 +4,12 @@ services:
container_name: jellyfin container_name: jellyfin
network_mode: 'host' network_mode: 'host'
volumes: volumes:
# manual replace - /opt/jellyfin:/config
- $HOME/.config/jellyfin:/config
- jellyfin-cache:/cache - jellyfin-cache:/cache
- type: bind - type: bind
source: /media source: /media
target: /media target: /media
# Optional - extra fonts to be used during transcoding with subtitle burn-in # Optional - extra fonts to be used during transcoding with subtitle burn-in
# just use Noto fonts.
- type: bind - type: bind
source: /usr/share/fonts/opentype source: /usr/share/fonts/opentype
target: /usr/local/share/fonts/custom target: /usr/local/share/fonts/custom
@@ -20,9 +18,8 @@ services:
- /dev/dri:/dev/dri - /dev/dri:/dev/dri
restart: 'unless-stopped' restart: 'unless-stopped'
# Optional - alternative address used for autodiscovery # Optional - alternative address used for autodiscovery
# hidden. # environment:
environment: # - JELLYFIN_PublishedServerUrl=
- JELLYFIN_PublishedServerUrl=https://blablabla.local
# Optional - may be necessary for docker healthcheck to pass if running in host network mode # Optional - may be necessary for docker healthcheck to pass if running in host network mode
extra_hosts: extra_hosts:
- 'host.docker.internal:host-gateway' - 'host.docker.internal:host-gateway'

View File

@@ -13,7 +13,7 @@ services:
cap_add: cap_add:
- ALL - ALL
volumes: volumes:
- /usr/local/etc/mihomo:/root/.config/mihomo - /opt/mihomo:/root/.config/mihomo
- /dev/net/tun:/dev/net/tun - /dev/net/tun:/dev/net/tun
yacd: yacd:
image: p3terx/yacd image: p3terx/yacd