diff --git a/Calendar/Diary/2024-03-09.md b/Calendar/Diary/2024-03-09.md new file mode 100644 index 00000000..14992222 --- /dev/null +++ b/Calendar/Diary/2024-03-09.md @@ -0,0 +1,29 @@ +--- +atlas: "[[DailyNote]]" +completed: 0 +created: 2024-03-09 01:40:34 +incomplete: 2 +modified: +tags: + - DailyNote +title: 2024-03-09 +total: 2 +--- + +> [!tip] << [[2024-03-08]] | [[2024-03-10]] >> +> 天气:大雨转雾,温度:9 ~ 18℃,湿度:77%,PM: 44,空气质量:良
+> 风向:东南风 1级,紫外线:无,日出: 06:23 日落: 18:16 + +# 学习 + +- [ ] + +# 生活 + +- [ ] + +# 随笔 + +# 复盘 + +- \ No newline at end of file diff --git a/Cards/Computer Science/OpenWrt Docker.md b/Cards/Computer Science/OpenWrt Docker.md index ca9903f6..23f42d33 100644 --- a/Cards/Computer Science/OpenWrt Docker.md +++ b/Cards/Computer Science/OpenWrt Docker.md @@ -165,4 +165,90 @@ docker run -d \ -v /var/run/docker.sock:/var/run/docker.sock \ containrrr/watchtower -c \ --schedule "0 0 3 * * *" -``` \ No newline at end of file +``` + +# Reader + +`docker run -d --restart=always --name=reader -v /mnt/usb3-1/reader/logs:/logs -v /mnt/usb3-1/reader/storage:/storage -p 4567:8080 hectorqin/reader java -jar /app/bin/reader.jar --spring.profiles.active=prod --reader.app.secure=true --reader.app.secureKey=Saligia7 --reader.app.inviteCode=Saligia7` + +# Immich + +```yaml +version: '3.8' + +# +# WARNING: Make sure to use the docker-compose.yml of the current release: +# +# https://github.com/immich-app/immich/releases/latest/download/docker-compose.yml +# +# The compose file on main may not be compatible with the latest release. +# + +name: immich + +services: + immich-server: + container_name: immich_server + image: ghcr.io/immich-app/immich-server:${IMMICH_VERSION:-release} + command: ['start.sh', 'immich'] + volumes: + - ${UPLOAD_LOCATION}:/usr/src/app/upload + env_file: + - stack.env + ports: + - 2283:3001 + depends_on: + - redis + - database + restart: always + + immich-microservices: + container_name: immich_microservices + image: ghcr.io/immich-app/immich-server:${IMMICH_VERSION:-release} + # extends: # uncomment this section for hardware acceleration - see https://immich.app/docs/features/hardware-transcoding + # file: hwaccel.transcoding.yml + # service: cpu # set to one of [nvenc, quicksync, rkmpp, vaapi, vaapi-wsl] for accelerated transcoding + command: ['start.sh', 'microservices'] + volumes: + - ${UPLOAD_LOCATION}:/usr/src/app/upload + env_file: + - stack.env + depends_on: + - redis + - database + restart: always + + immich-machine-learning: + container_name: immich_machine_learning + # For hardware acceleration, add one of -[armnn, cuda, openvino] to the image tag. + # Example tag: ${IMMICH_VERSION:-release}-cuda + image: ghcr.io/immich-app/immich-machine-learning:${IMMICH_VERSION:-release} + # extends: # uncomment this section for hardware acceleration - see https://immich.app/docs/features/ml-hardware-acceleration + # file: hwaccel.ml.yml + # service: cpu # set to one of [armnn, cuda, openvino, openvino-wsl] for accelerated inference - use the `-wsl` version for WSL2 where applicable + volumes: + - /mnt/sata3-1/immich/model-cache:/cache + env_file: + - stack.env + restart: always + + redis: + container_name: immich_redis + image: registry.hub.docker.com/library/redis:6.2-alpine@sha256:51d6c56749a4243096327e3fb964a48ed92254357108449cb6e23999c37773c5 + restart: always + + database: + container_name: immich_postgres + image: registry.hub.docker.com/tensorchord/pgvecto-rs:pg14-v0.2.0@sha256:90724186f0a3517cf6914295b5ab410db9ce23190a2d9d0b9dd6463e3fa298f0 + environment: + POSTGRES_PASSWORD: ${DB_PASSWORD} + POSTGRES_USER: ${DB_USERNAME} + POSTGRES_DB: ${DB_DATABASE_NAME} + volumes: + - /mnt/sata3-1/immich/pgdata:/var/lib/postgresql/data + restart: always +``` + +# Uptime-Kuma + +`docker run -d --restart=always -p 3001:3001 -v uptime-kuma:/app/data --name uptime-kuma louislam/uptime-kuma:latest` \ No newline at end of file