Docker Compose issues.

Hi all I am in the process of trying to install immich on a new docker system and I am running into an issue with my docker compose. When i try and run it, I get this message
[sudo] password for aaron:
2023-08-14 14:46:37 [NOTICE] Creating environment variables for enabled apps. Please be patient, this can take a while.
2023-08-14 14:46:38 [NOTICE] Adding compose configurations for enabled apps. Please be patient, this can take a while.
validating /home/aaron/.docker/compose/docker-compose.override.yml: services.immich-server.environment must be a mapping
2023-08-14 14:46:38 [FATAL ] Failed to run compose.
Failing command: docker compose --project-directory /home/aaron/.docker/compose/ up -d --remove-orphan
[sudo] password for aaron:
2023-08-14 14:46:37 [NOTICE] Creating environment variables for enabled apps. Please be patient, this can take a while.
2023-08-14 14:46:38 [NOTICE] Adding compose configurations for enabled apps. Please be patient, this can take a while.
validating /home/aaron/.docker/compose/docker-compose.override.yml: services.immich-server.environment must be a mapping
2023-08-14 14:46:38 [FATAL ] Failed to run compose.
Failing command: docker compose --project-directory /home/aaron/.docker/compose/ up -d --remove-orphan
here is the relevant portions of the compose file:
immich-server:
container_name: immich_server
image: ghcr.io/immich-app/immich-server:${IMMICH_VERSION:-release}
command: [ "start.sh", "immich" ]
environment:
- DB_HOSTNAME: postgresql-immich
- DB_USERNAME: pguser-immich
- DB_PASSWORD: XXXXXXXXXXXXXXXXXXXXXXXXX
- DB_DATABASE_NAME: pgdb-immich
- DB_PORT: 5433
- REDIS_HOSTNAME: redis
- REDIS_PASSWORD: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
- TYPESENSE_API_KEY: XXXXXXXXXXXXXXXXXXXXXXXXXXXX
- TYPESENSE_HOST: typesense
volumes:
- ${DOCKERCONFDIR}/immich:/data
- ${DOCKERSTORAGEDIR}:/storage
depends_on:
- redis
- postgresql-immich
- typesense
restart: always
immich-server:
container_name: immich_server
image: ghcr.io/immich-app/immich-server:${IMMICH_VERSION:-release}
command: [ "start.sh", "immich" ]
environment:
- DB_HOSTNAME: postgresql-immich
- DB_USERNAME: pguser-immich
- DB_PASSWORD: XXXXXXXXXXXXXXXXXXXXXXXXX
- DB_DATABASE_NAME: pgdb-immich
- DB_PORT: 5433
- REDIS_HOSTNAME: redis
- REDIS_PASSWORD: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
- TYPESENSE_API_KEY: XXXXXXXXXXXXXXXXXXXXXXXXXXXX
- TYPESENSE_HOST: typesense
volumes:
- ${DOCKERCONFDIR}/immich:/data
- ${DOCKERSTORAGEDIR}:/storage
depends_on:
- redis
- postgresql-immich
- typesense
restart: always
Any idea what I might be missing
3 Replies
Alex Tran
Alex Tran2y ago
can you use the original docker-compose file to run?
bo0tzz
bo0tzz2y ago
The dashes in the environment section shouldn't be there
environment:
DB_HOSTNAME: postgresql-immich
environment:
DB_HOSTNAME: postgresql-immich
like that
apperrault
apperraultOP2y ago
DOH!!!! I knew it was something stupid. I was looking at my other compose files and was not seeing that small thing One last question. Where do I set the port it uses? looking at the post-isntall instructions it says to go to http://<machine-ip-address>:2283, but that port is not exposed anywhere. Did I miss something in the env or the compose? nevermind. I forgot to add the proxy. now it looks like it is working

Did you find this page helpful?