The "IMMICH_SERVER_URL" variable is not set #499

Closed
opened 2026-02-04 20:53:02 +03:00 by OVERLORD · 2 comments
Owner

Originally created by @bt90 on GitHub (Dec 20, 2022).

The following warning is logged by docker compose:

WARN[0000] The "IMMICH_SERVER_URL" variable is not set. Defaulting to a blank string.

The entry is commented out by default in the .env and is clearly marked as optional:

38bf310eac/docker/.env.example (L74-L83)

Since Immich is running fine, I think the warning can be ignored. But this could confuse users if a warning is logged even if they have configured everything correctly.

docker compose version: v2.14.1

Originally created by @bt90 on GitHub (Dec 20, 2022). The following warning is logged by docker compose: ``` WARN[0000] The "IMMICH_SERVER_URL" variable is not set. Defaulting to a blank string. ``` The entry is commented out by default in the `.env` and is clearly marked as optional: https://github.com/immich-app/immich/blob/38bf310eacdd6a0b03451f63361272b04227a88a/docker/.env.example#L74-L83 Since Immich is running fine, I think the warning can be ignored. But this could confuse users if a warning is logged even if they have configured everything correctly. docker compose version: v2.14.1
Author
Owner

@jrasm91 commented on GitHub (Dec 20, 2022):

This is a warning from docker compose, which happens when an environment variable is referenced in the compose file, but a value wasn't provided. We can either (1) update the docs to make this more clear or (2) automatically default the value to an empty string, which may prevent the warning from showing in the first place.

@jrasm91 commented on GitHub (Dec 20, 2022): This is a warning from docker compose, which happens when an environment variable is referenced in the compose file, but a value wasn't provided. We can either (1) update the docs to make this more clear or (2) automatically default the value to an empty string, which may prevent the warning from showing in the first place.
Author
Owner

@bt90 commented on GitHub (Dec 20, 2022):

I think option 2 is preferable as it avoids noise. Why don't we uncomment the default values and adjust the warning to only modify them if needed?

e.g:

####################################################################################
# Alternative Service Addresses - Optional
#
# Modifying these URLs is an advanced feature for users who may be running their immich services on different hosts.
# It will not change which address or port that services bind to within their containers, but it will change where other services look for their peers.
# Note: immich-microservices is bound to 3002, but no references are made
####################################################################################

IMMICH_SERVER_URL=http://immich-server:3001
IMMICH_WEB_URL=http://immich-web:3000
IMMICH_MACHINE_LEARNING_URL=http://immich-machine-learning:3003
@bt90 commented on GitHub (Dec 20, 2022): I think option 2 is preferable as it avoids noise. Why don't we uncomment the default values and adjust the warning to only modify them if needed? e.g: ```properties #################################################################################### # Alternative Service Addresses - Optional # # Modifying these URLs is an advanced feature for users who may be running their immich services on different hosts. # It will not change which address or port that services bind to within their containers, but it will change where other services look for their peers. # Note: immich-microservices is bound to 3002, but no references are made #################################################################################### IMMICH_SERVER_URL=http://immich-server:3001 IMMICH_WEB_URL=http://immich-web:3000 IMMICH_MACHINE_LEARNING_URL=http://immich-machine-learning:3003 ```
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: immich-app/immich#499