Skip to content

Commit

Permalink
style(compose): Don't use environment variables
Browse files Browse the repository at this point in the history
They're not a secret values and should be hard-coded.
  • Loading branch information
5ouma committed Jul 9, 2024
1 parent 90c08d0 commit 2ade260
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
2 changes: 0 additions & 2 deletions immich/.env.tmpl
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
UPLOAD_LOCATION=./library
IMMICH_CONFIG_FILE=/config/immich.json
DB_HOSTNAME=immich_postgres
DB_DATABASE_NAME=immich
DB_USERNAME=postgres
Expand Down
8 changes: 4 additions & 4 deletions immich/compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,16 @@ services:
container_name: immich_server
image: ghcr.io/immich-app/immich-server:v1.107.2@sha256:66050b1aaa86366bef629a31dff95c1303ef5c9b7783863a48456704a56d5640
environment:
UPLOAD_LOCATION: ${UPLOAD_LOCATION}
IMMICH_CONFIG_FILE: ${IMMICH_CONFIG_FILE}
UPLOAD_LOCATION: ./library
IMMICH_CONFIG_FILE: /config/immich.json
DB_HOSTNAME: ${DB_HOSTNAME}
DB_DATABASE_NAME: ${DB_DATABASE_NAME}
DB_USERNAME: ${DB_USERNAME}
DB_PASSWORD: ${DB_PASSWORD}
volumes:
- ${UPLOAD_LOCATION}:/usr/src/app/upload
- ./library:/usr/src/app/upload
- /etc/localtime:/etc/localtime:ro
- ./config/immich.json:${IMMICH_CONFIG_FILE}:ro
- ./config/immich.json:/config/immich.json:ro
depends_on:
redis:
condition: service_healthy
Expand Down

0 comments on commit 2ade260

Please sign in to comment.