ImmichI
Immich3mo ago
EssDub

"mapping values are not allowed in this context" with Docker Compose

I am attempting to upgrade, including the migration to VectorChord, following the instructions in the documentation. Accordingly, I have edited the Docker Compose file I'm using to replace pgvecto.rs with VectorChord.

The relevant portion of my Docker Compose file looks like this:

[...]
  database:
    container_name: immich_postgres
    image: image: ghcr.io/immich-app/postgres:14-vectorchord0.4.3-pgvectors0.2.0
    environment:
      POSTGRES_PASSWORD: ${DB_PASSWORD}
      POSTGRES_USER: ${DB_USERNAME}
      POSTGRES_DB: ${DB_DATABASE_NAME}
      POSTGRES_INITDB_ARGS: '--data-checksums' #This is Line 71
      # Uncomment the DB_STORAGE_TYPE: 'HDD' var if your database isn't stored on SSDs
      # DB_STORAGE_TYPE: 'HDD'
    volumes:
      # Do not edit the next line. If you want to change the database storage location on your system, edit the value of DB_DATA_LOCATION in the .env file
      - ${DB_DATA_LOCATION}:/var/lib/postgresql/data
    shm_size: 128mb
    restart: always
    networks:
      - immich
[...]


However, when I attempt to pull the image, I get this error:

yaml: line 71: mapping values are not allowed in this context


I have denoted Line 71 with a comment above. I copied it directly from the documentation. I'm scrutinizing the YAML spacing and everything looks good to me.

Can anyone with more experienced or careful eyes identify why I'm getting this error, and how to resolve it?

Thanks!
Was this page helpful?