Add Gitea backup/restore scripts, parameterize configs
- Add gitea/backup.sh and gitea/restore.sh - Move hardcoded values in gitea/docker-compose.yml to gitea/.env - Move immich .env from root to immich-app/, update env_file path - Remove root docker-compose.yml (was only an include alias) Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
28
immich-app/.env
Normal file
28
immich-app/.env
Normal file
@@ -0,0 +1,28 @@
|
||||
|
||||
|
||||
########### IMMICH ###############
|
||||
|
||||
# You can find documentation for all the supported env variables at https://docs.immich.app/install/environment-variables
|
||||
|
||||
# The location where your uploaded files are stored
|
||||
UPLOAD_LOCATION=/mnt/media/upload
|
||||
THUMB_LOCATION=/mnt/ssd/media/thumbs
|
||||
ENCODED_VIDEO_LOCATION=/mnt/ssd/media/encoded-video
|
||||
|
||||
# The location where your database files are stored. Network shares are not supported for the database
|
||||
DB_DATA_LOCATION=/mnt/ssd/media/postgres
|
||||
|
||||
# To set a timezone, uncomment the next line and change Etc/UTC to a TZ identifier from this list: https://en.wikipedia.org/wiki/List_of_tz_database_time_zones#List
|
||||
# TZ=Etc/UTC
|
||||
|
||||
# The Immich version to use. You can pin this to a specific version like "v2.1.0"
|
||||
IMMICH_VERSION=v2
|
||||
|
||||
# Connection secret for postgres. You should change it to a random password
|
||||
# Please use only the characters `A-Za-z0-9`, without special characters or spaces
|
||||
DB_PASSWORD=postgres1231411
|
||||
|
||||
# The values below this line do not need to be changed
|
||||
###################################################################################
|
||||
DB_USERNAME=postgres
|
||||
DB_DATABASE_NAME=immich
|
||||
@@ -23,7 +23,7 @@ services:
|
||||
- ${ENCODED_VIDEO_LOCATION}:/data/encoded-video
|
||||
- /etc/localtime:/etc/localtime:ro
|
||||
env_file:
|
||||
- ../.env
|
||||
- .env
|
||||
ports:
|
||||
- '2283:2283'
|
||||
depends_on:
|
||||
@@ -44,7 +44,7 @@ services:
|
||||
volumes:
|
||||
- model-cache:/cache
|
||||
env_file:
|
||||
- ../.env
|
||||
- .env
|
||||
restart: always
|
||||
healthcheck:
|
||||
disable: false
|
||||
|
||||
Reference in New Issue
Block a user