feat: auto generate url

This commit is contained in:
OG-Jons
2024-09-15 22:20:48 +02:00
parent 8166163b00
commit c5fd7ba48a

View File

@@ -18,15 +18,15 @@ x-shared-env: &shared-env
- IMMICH_VERSION=${IMMICH_VERSION:-release} # The Immich version to use, editable in Coolify - IMMICH_VERSION=${IMMICH_VERSION:-release} # The Immich version to use, editable in Coolify
# Default values, editable in Coolify UI # Default values, editable in Coolify UI
- DB_PASSWORD=${DB_PASSWORD:-postgres} # Default: "postgres", can be overridden - DB_PASSWORD=${SERVICE_PASSWORD_IMMICH} # Default: "postgres", can be overridden
- DB_USERNAME=${DB_USERNAME:-postgres} # Default: "postgres", can be overridden - DB_USERNAME=${SERVICE_USER_IMMICH} # Default: "postgres", can be overridden
- DB_DATABASE_NAME=${DB_DATABASE_NAME:-immich} # Default: "immich", can be overridden - DB_DATABASE_NAME=${DB_DATABASE_NAME:-immich} # Default: "immich", can be overridden
# Optional timezone variable, uninitialized, editable in Coolify UI\ # Optional timezone variable, uninitialized, editable in Coolify UI\
- TZ=${TZ:-Etc/UTC} - TZ=${TZ:-Etc/UTC}
services: services:
immich-server: immich:
container_name: immich_server container_name: immich_server
image: ghcr.io/immich-app/immich-server:${IMMICH_VERSION:-release} image: ghcr.io/immich-app/immich-server:${IMMICH_VERSION:-release}
# extends: # extends:
@@ -37,8 +37,10 @@ services:
- ${UPLOAD_LOCATION}:/usr/src/app/upload - ${UPLOAD_LOCATION}:/usr/src/app/upload
- /etc/localtime:/etc/localtime:ro - /etc/localtime:/etc/localtime:ro
<<: *shared-env <<: *shared-env
ports: environment:
- 2283:3001 - SERVICE_FQDN_IMMICH=/
- _APP_URL=$SERVICE_FQDN_IMMICH
- SERVICE_FQDN_IMMICH_3001
depends_on: depends_on:
- redis - redis
- database - database