Hi, I'm Friedrich.
I'm a software engineer in California. I write about distributed systems, things I learn, and software I build.
Recent writing
-
Introducing swift-components
Continue readingI’ve open sourced
swift-components, a Swift package of reusable SwiftUI components for iOS, macOS, and watchOS. -
@f-ewald/components: an open source web component library
Continue readingI’ve open sourced
@f-ewald/components, a library of over 80 self-contained web components I use across my own projects, published on npm. -
Introducing Journey
Continue readingI just published the first version of Journey, a frontend-only, scroll-driven map presentation. The source is on Github.
-
Resetting master branch to origin master
Continue readingSometimes your local
masterbranch gets into a state where it has diverged fromorigin/master. This can happen when you accidentally commit tomasterinstead of a feature branch, or when a rebase goes wrong. -
Immich on QNAP
I installed Immich on my QNAP NAS with the following Docker configuration, based on this Reddit post:
name: immich services: database: container_name: immich_postgres image: ghcr.io/immich-app/postgres:14-vectorchord0.4.3-pgvectors0.2.0@sha256:bcf63357191b76a916ae5eb93464d65c07511da41e3bf7a8416db519b40b1c23 environment: POSTGRES_PASSWORD: immich #this has to be same what's on row 47 POSTGRES_USER: postgres POSTGRES_DB: immich POSTGRES_INITDB_ARGS: '--data-checksums' volumes: - ./postgres:/var/lib/postgresql/data shm_size: 128mb restart: always redis: container_name: immich_redis image: docker.io/valkey/valkey:9@sha256:fb8d272e529ea567b9bf1302245796f21a2672b8368ca3fcb938ac334e613c8f healthcheck: test: redis-cli ping || exit 1 restart: always immich-machine-learning: container_name: immich_machine_learning image: ghcr.io/immich-app/immich-machine-learning:v2 environment: - TZ=America/Los_Angeles - OPENVINO_DEVICE=AUTO volumes: - ./model-cache:/cache restart: always healthcheck: disable: false immich-server: container_name: immich_server image: ghcr.io/immich-app/immich-server:v2 devices: - /dev/dri:/dev/dri environment: - TZ=America/Los_Angeles - LIBVA_DRIVER_NAME=iHD - DB_HOST=database - DB_PORT=5432 - DB_USERNAME=postgres - DB_PASSWORD=immich - DB_DATABASE_NAME=immich - REDIS_HOST=redis - REDIS_PORT=6379 volumes: - /share/Photos/Freddy:/home/user/photos1:ro #this is how to map folder from your NAS to immich, in this example my photos are located on the NAS at /share/CACHEDEV1_DATA/Multimedia/Photo, which is mapped to this in immich: /home/user/photos1 - ./library:/data - /etc/localtime:/etc/localtime:ro ports: - '2283:2283' depends_on: - redis - database restart: always healthcheck: disable: falseThe important thing: The library needs to be added to have read only access to shared data so that data doesn’t need to live twice on the NAS. Read-only access ensures that the data doesn’t get modified.
Updating Immich
To update immich, it first needs to be stopped from the admin interface, then execute the following commands
cd /share/Container/container-station-data/application/immich docker compose pull docker compose up -d