example.env 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  1. ###################################################################################
  2. # Database
  3. ###################################################################################
  4. # NOTE: The following four database variables support Docker secrets by adding a *_FILE suffix to the variable name
  5. # See the docker-compose documentation on secrets for additional details: https://docs.docker.com/compose/compose-file/compose-file-v3/#secrets
  6. DB_HOSTNAME=immich_postgres
  7. DB_USERNAME=postgres
  8. DB_PASSWORD=postgres
  9. DB_DATABASE_NAME=immich
  10. # Optional Database settings:
  11. # DB_PORT=5432
  12. ###################################################################################
  13. # Redis
  14. ###################################################################################
  15. REDIS_HOSTNAME=immich_redis
  16. # REDIS_URL will be used to pass custom options to ioredis.
  17. # Example for Sentinel
  18. # {"sentinels":[{"host":"redis-sentinel-node-0","port":26379},{"host":"redis-sentinel-node-1","port":26379},{"host":"redis-sentinel-node-2","port":26379}],"name":"redis-sentinel"}
  19. # REDIS_URL=ioredis://eyJzZW50aW5lbHMiOlt7Imhvc3QiOiJyZWRpcy1zZW50aW5lbDEiLCJwb3J0IjoyNjM3OX0seyJob3N0IjoicmVkaXMtc2VudGluZWwyIiwicG9ydCI6MjYzNzl9XSwibmFtZSI6Im15bWFzdGVyIn0=
  20. # Optional Redis settings:
  21. # Note: these parameters are not automatically passed to the Redis Container
  22. # to do so, please edit the docker-compose.yml file as well. Redis is not configured
  23. # via environment variables, only redis.conf or the command line
  24. # REDIS_PORT=6379
  25. # REDIS_DBINDEX=0
  26. # REDIS_USERNAME=
  27. # REDIS_PASSWORD=
  28. # REDIS_SOCKET=
  29. ###################################################################################
  30. # Upload File Location
  31. #
  32. # This is the location where uploaded files are stored.
  33. ###################################################################################
  34. UPLOAD_LOCATION=absolute_location_on_your_machine_where_you_want_to_store_the_backup
  35. ###################################################################################
  36. # Typesense
  37. ###################################################################################
  38. TYPESENSE_API_KEY=some-random-text
  39. # TYPESENSE_ENABLED=false
  40. # TYPESENSE_URL uses base64 encoding for the nodes json.
  41. # Example JSON that was used:
  42. # [
  43. # { 'host': 'typesense-1.example.net', 'port': '443', 'protocol': 'https' },
  44. # { 'host': 'typesense-2.example.net', 'port': '443', 'protocol': 'https' },
  45. # { 'host': 'typesense-3.example.net', 'port': '443', 'protocol': 'https' },
  46. # ]
  47. # TYPESENSE_URL=ha://WwogICAgeyAnaG9zdCc6ICd0eXBlc2Vuc2UtMS5leGFtcGxlLm5ldCcsICdwb3J0JzogJzQ0MycsICdwcm90b2NvbCc6ICdodHRwcycgfSwKICAgIHsgJ2hvc3QnOiAndHlwZXNlbnNlLTIuZXhhbXBsZS5uZXQnLCAncG9ydCc6ICc0NDMnLCAncHJvdG9jb2wnOiAnaHR0cHMnIH0sCiAgICB7ICdob3N0JzogJ3R5cGVzZW5zZS0zLmV4YW1wbGUubmV0JywgJ3BvcnQnOiAnNDQzJywgJ3Byb3RvY29sJzogJ2h0dHBzJyB9LApd
  48. ###################################################################################
  49. # Reverse Geocoding
  50. #
  51. # Reverse geocoding is done locally which has a small impact on memory usage
  52. # This memory usage can be altered by changing the REVERSE_GEOCODING_PRECISION variable
  53. # This ranges from 0-3 with 3 being the most precise
  54. # 3 - Cities > 500 population: ~200MB RAM
  55. # 2 - Cities > 1000 population: ~150MB RAM
  56. # 1 - Cities > 5000 population: ~80MB RAM
  57. # 0 - Cities > 15000 population: ~40MB RAM
  58. ####################################################################################
  59. # DISABLE_REVERSE_GEOCODING=false
  60. # REVERSE_GEOCODING_PRECISION=3
  61. ####################################################################################
  62. # WEB - Optional
  63. #
  64. # Custom message on the login page, should be written in HTML form.
  65. # For example:
  66. # PUBLIC_LOGIN_PAGE_MESSAGE="This is a demo instance of Immich.<br><br>Email: <i>demo@demo.de</i><br>Password: <i>demo</i>"
  67. ####################################################################################
  68. PUBLIC_LOGIN_PAGE_MESSAGE=
  69. ####################################################################################
  70. # Alternative Service Addresses - Optional
  71. #
  72. # This is an advanced feature for users who may be running their immich services on different hosts.
  73. # 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.
  74. # Note: immich-microservices is bound to 3002, but no references are made
  75. ####################################################################################
  76. IMMICH_WEB_URL=http://immich-web:3000
  77. IMMICH_SERVER_URL=http://immich-server:3001
  78. IMMICH_MACHINE_LEARNING_URL=http://immich-machine-learning:3003
  79. ####################################################################################
  80. # Alternative API's External Address - Optional
  81. #
  82. # This is an advanced feature used to control the public server endpoint returned to clients during Well-known discovery.
  83. # You should only use this if you want mobile apps to access the immich API over a custom URL. Do not include trailing slash.
  84. # NOTE: At this time, the web app will not be affected by this setting and will continue to use the relative path: /api
  85. # Examples: http://localhost:3001, http://immich-api.example.com, etc
  86. ####################################################################################
  87. #IMMICH_API_URL_EXTERNAL=http://localhost:3001
  88. ###################################################################################
  89. # Immich Version - Optional
  90. #
  91. # This allows all immich docker images to be pinned to a specific version. By default,
  92. # the version is "release" but could be a specific version, like "v1.59.0".
  93. ###################################################################################
  94. #IMMICH_VERSION=