232 字
1 分钟
immich:自建开源相册管理程序
immich到底是个啥?
简单说,这就是你自己家的”百度网盘相册”。装在自己服务器上,照片存在自己硬盘里,想怎么折腾就怎么折腾。
完全免费!没有会员费,没有限速,没有广告。你的照片就是你的,谁也拿不走。
安装
Docker一行命令就搞定:
version: '3.8'
name: immich
services: immich-server: container_name: immich_server image: ghcr.io/immich-app/immich-server:release environment: TZ: Asia/Shanghai volumes: - ./library:/usr/src/app/upload - /etc/localtime:/etc/localtime:ro ports: - '2283:2283' depends_on: - redis - database restart: unless-stopped healthcheck: disable: false
redis: container_name: immich_redis image: redis:6.2.17 healthcheck: test: redis-cli ping || exit 1 restart: unless-stopped
database: container_name: immich_postgres image: docker.io/tensorchord/pgvecto-rs:pg14-v0.2.0@sha256:739cdd626151ff1f796dc95a6591b55a714f341c737e27f045019ceabf8e8c52 environment: TZ: Asia/Shanghai POSTGRES_PASSWORD: postgres POSTGRES_USER: postgres POSTGRES_DB: immich POSTGRES_INITDB_ARGS: '--data-checksums' volumes: - ./postgres:/var/lib/postgresql/data command: >- postgres -c shared_preload_libraries=vectors.so -c 'search_path="$$user", public, vectors' -c logging_collector=on -c max_wal_size=2GB -c shared_buffers=512MB -c wal_compression=on restart: unless-stopped
volumes: model-cache:运行:
docker-compose up -d使用: 浏览器打开 http://127.0.0.1:2283
小提示:
- 安装前记得先看看官方文档
- 建议配置防火墙规则,限制外部访问
- 定期备份你的照片和数据库
immich:自建开源相册管理程序
https://blog.dongge.de/posts/immich-自建开源相册管理程序/ 
