Add Redis storage and improve user setup

This commit is contained in:
Colin Hebert
2024-10-16 17:40:03 +11:00
parent 6fd4c0ec4c
commit 89d43b5c04
3 changed files with 24 additions and 15 deletions

View File

@@ -12,35 +12,42 @@ services:
- smtp-server
- default
depends_on:
- immich_redis
- immich_postgres
- immich-redis
- immich-postgres
environment:
REDIS_HOSTNAME: immich-redis
DB_HOSTNAME: immich-postgres
DB_USERNAME: postgres
DB_PASSWORD: postgres
DB_DATABASE_NAME: immich
volumes:
- ${NASCOMPOSE_DATA?}/media/photos/:/usr/src/app/upload/
immich-machine-learning:
immich-ml:
extends:
file: ../compose.base.yaml
service: base-service
hostname: immich-machine-learning
container_name: immich-ml
image: ghcr.io/immich-app/immich-machine-learning:release
user: ${NASCOMPOSE_UID?}:${NASCOMPOSE_GID?}
volumes:
- ./volumes/immich_ml_cache/:/cache/
immich_redis:
- ./volumes/immich_ml_config/:/.config/
immich-redis:
extends:
file: ../compose.base.yaml
service: base-service
hostname: redis
container_name: immich-redis
image: redis:6.2-alpine
healthcheck:
test: redis-cli ping || exit 1
immich_postgres:
user: ${NASCOMPOSE_UID?}:${NASCOMPOSE_GID?}
volumes:
- ./volumes/redis_data/:/data/
immich-postgres:
extends:
file: ../compose.base.yaml
service: base-service
hostname: database
container_name: immich-postgres
image: tensorchord/pgvecto-rs:pg14-v0.2.0
user: ${NASCOMPOSE_UID?}:${NASCOMPOSE_GID?}
environment: