Skip to content

Commit c5fd7ba

Browse files
committed
feat: auto generate url
1 parent 8166163 commit c5fd7ba

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

templates/compose/immich.yaml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,15 @@ x-shared-env: &shared-env
1818
- IMMICH_VERSION=${IMMICH_VERSION:-release} # The Immich version to use, editable in Coolify
1919

2020
# Default values, editable in Coolify UI
21-
- DB_PASSWORD=${DB_PASSWORD:-postgres} # Default: "postgres", can be overridden
22-
- DB_USERNAME=${DB_USERNAME:-postgres} # Default: "postgres", can be overridden
21+
- DB_PASSWORD=${SERVICE_PASSWORD_IMMICH} # Default: "postgres", can be overridden
22+
- DB_USERNAME=${SERVICE_USER_IMMICH} # Default: "postgres", can be overridden
2323
- DB_DATABASE_NAME=${DB_DATABASE_NAME:-immich} # Default: "immich", can be overridden
2424

2525
# Optional timezone variable, uninitialized, editable in Coolify UI\
2626
- TZ=${TZ:-Etc/UTC}
2727

2828
services:
29-
immich-server:
29+
immich:
3030
container_name: immich_server
3131
image: ghcr.io/immich-app/immich-server:${IMMICH_VERSION:-release}
3232
# extends:
@@ -37,8 +37,10 @@ services:
3737
- ${UPLOAD_LOCATION}:/usr/src/app/upload
3838
- /etc/localtime:/etc/localtime:ro
3939
<<: *shared-env
40-
ports:
41-
- 2283:3001
40+
environment:
41+
- SERVICE_FQDN_IMMICH=/
42+
- _APP_URL=$SERVICE_FQDN_IMMICH
43+
- SERVICE_FQDN_IMMICH_3001
4244
depends_on:
4345
- redis
4446
- database

0 commit comments

Comments
 (0)