73 lines
1.6 KiB
YAML
73 lines
1.6 KiB
YAML
name: immich
|
|
|
|
services:
|
|
immich-server:
|
|
container_name: immich_server
|
|
image: ghcr.io/immich-app/immich-server:${IMMICH_VERSION:-release}
|
|
# extends:
|
|
# file: hwaccel.transcoding.yml
|
|
# service: cpu
|
|
volumes:
|
|
- /home/miker/docker/immich/library:/data
|
|
- /etc/localtime:/etc/localtime:ro
|
|
ports:
|
|
- '2283:2283'
|
|
depends_on:
|
|
- redis
|
|
- database
|
|
restart: always
|
|
healthcheck:
|
|
disable: false
|
|
networks:
|
|
- immich
|
|
- main
|
|
|
|
immich-machine-learning:
|
|
container_name: immich_machine_learning
|
|
image: ghcr.io/immich-app/immich-machine-learning:${IMMICH_VERSION:-release}
|
|
# extends:
|
|
# file: hwaccel.ml.yml
|
|
# service: cpu
|
|
volumes:
|
|
- model-cache:/cache
|
|
restart: always
|
|
healthcheck:
|
|
disable: false
|
|
networks:
|
|
- immich
|
|
|
|
redis:
|
|
container_name: immich_redis
|
|
image: docker.io/valkey/valkey:9@sha256:3b55fbaa0cd93cf0d9d961f405e4dfcc70efe325e2d84da207a0a8e6d8fde4f9
|
|
healthcheck:
|
|
test: ["CMD-SHELL", "valkey-cli ping || exit 1"]
|
|
restart: always
|
|
networks:
|
|
- immich
|
|
|
|
database:
|
|
container_name: immich_postgres
|
|
image: ghcr.io/immich-app/postgres:14-vectorchord0.4.3-pgvectors0.2.0
|
|
environment:
|
|
POSTGRES_PASSWORD: mM3PXXUjK0QMz7
|
|
POSTGRES_USER: postgresadmin
|
|
POSTGRES_DB: immich
|
|
POSTGRES_INITDB_ARGS: '--data-checksums'
|
|
volumes:
|
|
- /home/miker/docker/immich/postgres:/var/lib/postgresql/data
|
|
shm_size: 128mb
|
|
restart: always
|
|
healthcheck:
|
|
disable: false
|
|
networks:
|
|
- immich
|
|
|
|
volumes:
|
|
model-cache:
|
|
|
|
networks:
|
|
main:
|
|
external: true
|
|
immich:
|
|
driver: bridge
|