added immich as alternative to photoprism
This commit is contained in:
parent
dab2277501
commit
f5904c9b2d
3 changed files with 78 additions and 1 deletions
|
@ -15,7 +15,7 @@ servers = [
|
||||||
"ssh_user": "root",
|
"ssh_user": "root",
|
||||||
"web_server": True,
|
"web_server": True,
|
||||||
"services": [
|
"services": [
|
||||||
"nginx", "photoprism", "nodered"
|
"nginx", "immich", "nodered"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
9
services/immich/.env.example
Normal file
9
services/immich/.env.example
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
UPLOAD_LOCATION=
|
||||||
|
|
||||||
|
DB_PASSWORD=
|
||||||
|
DB_HOSTNAME=database
|
||||||
|
DB_USERNAME=
|
||||||
|
DB_DATABASE_NAME=
|
||||||
|
|
||||||
|
REDIS_HOSTNAME=
|
||||||
|
HOST=
|
68
services/immich/docker-compose.yml
Normal file
68
services/immich/docker-compose.yml
Normal file
|
@ -0,0 +1,68 @@
|
||||||
|
volumes:
|
||||||
|
database-data:
|
||||||
|
name: database-data
|
||||||
|
model-cache-data:
|
||||||
|
name: model-cache-data
|
||||||
|
|
||||||
|
networks:
|
||||||
|
traefik-net:
|
||||||
|
external: true
|
||||||
|
name: traefik-net
|
||||||
|
|
||||||
|
x-traefik: &x-traefiK
|
||||||
|
networks:
|
||||||
|
- traefik-net
|
||||||
|
- default
|
||||||
|
|
||||||
|
services:
|
||||||
|
immich-server:
|
||||||
|
image: ghcr.io/immich-app/immich-server:release
|
||||||
|
command: [ 'start.sh', 'immich' ]
|
||||||
|
volumes:
|
||||||
|
- ${UPLOAD_LOCATION}:/usr/src/app/upload
|
||||||
|
- /etc/localtime:/etc/localtime:ro
|
||||||
|
env_file:
|
||||||
|
- .env
|
||||||
|
<<: *x-traefiK
|
||||||
|
depends_on:
|
||||||
|
- redis
|
||||||
|
- database
|
||||||
|
deploy:
|
||||||
|
labels:
|
||||||
|
- traefik.enable=true
|
||||||
|
- traefik.docker.network=traefik-net
|
||||||
|
- traefik.http.routers.immich.rule=Host(`${HOST}`)
|
||||||
|
- traefik.http.routers.immich.entrypoints=${ENTRYPOINTS:-websecure}
|
||||||
|
- traefik.http.routers.immich.tls.certresolver=le
|
||||||
|
- traefik.http.services.immich.loadbalancer.server.port=3001
|
||||||
|
|
||||||
|
immich-microservices:
|
||||||
|
image: ghcr.io/immich-app/immich-server:release
|
||||||
|
command: [ 'start.sh', 'microservices' ]
|
||||||
|
volumes:
|
||||||
|
- ${UPLOAD_LOCATION}:/usr/src/app/upload
|
||||||
|
- /etc/localtime:/etc/localtime:ro
|
||||||
|
env_file:
|
||||||
|
- .env
|
||||||
|
depends_on:
|
||||||
|
- redis
|
||||||
|
- database
|
||||||
|
|
||||||
|
immich-machine-learning:
|
||||||
|
image: ghcr.io/immich-app/immich-machine-learning:release
|
||||||
|
volumes:
|
||||||
|
- model-cache-data:/cache
|
||||||
|
env_file:
|
||||||
|
- .env
|
||||||
|
|
||||||
|
redis:
|
||||||
|
image: redis:6.2-alpine
|
||||||
|
|
||||||
|
database:
|
||||||
|
image: tensorchord/pgvecto-rs:pg14-v0.2.0
|
||||||
|
environment:
|
||||||
|
POSTGRES_PASSWORD: ${DB_PASSWORD}
|
||||||
|
POSTGRES_USER: ${DB_USERNAME}
|
||||||
|
POSTGRES_DB: ${DB_DATABASE_NAME}
|
||||||
|
volumes:
|
||||||
|
- database-data:/var/lib/postgresql/data
|
Loading…
Reference in a new issue