dc-immich/docker-compose.yml

82 lines
2.2 KiB
YAML

version: "3.8"
services:
immich-server:
container_name: immich_server
image: ghcr.io/immich-app/immich-server:v1.104.0@sha256:ac459accdc93977e559da70beddb01a9736e98e8350f12381589a5bec91197bc
command: ["start.sh", "immich"]
ports:
- 3001:3001
volumes:
- /mnt/truenas-services/immich:/usr/src/app/upload
- /mnt/truenas-services/immich-external:/mnt/external
- /etc/localtime:/etc/localtime:ro
env_file:
- stack.env
environment:
- LETSENCRYPT_HOST=${IMMICH_HOST:?}
- VIRTUAL_HOST=${IMMICH_HOST:?}
- VIRTUAL_PORT=${IMMICH_PORT:-3001}
depends_on:
- redis
- database
restart: always
networks:
- immich
immich-microservices:
container_name: immich_microservices
image: ghcr.io/immich-app/immich-server:v1.104.0@sha256:ac459accdc93977e559da70beddb01a9736e98e8350f12381589a5bec91197bc
command: ["start.sh", "microservices"]
volumes:
- /mnt/truenas-services/immich:/usr/src/app/upload
- /mnt/truenas-services/immich-external:/mnt/external
- /etc/localtime:/etc/localtime:ro
env_file:
- stack.env
depends_on:
- redis
- database
restart: always
networks:
- immich
immich-machine-learning:
container_name: immich_machine_learning
image: ghcr.io/immich-app/immich-machine-learning:v1.104.0@sha256:0dd0066f47c91fc69e4a9c4f3e70a7805d84d60e8eb5ffd7ec9c264e8d82cb70
volumes:
- model-cache:/cache
env_file:
- stack.env
restart: always
networks:
- immich
redis:
container_name: immich_redis
image: redis:6.2-alpine@sha256:84882e87b54734154586e5f8abd4dce69fe7311315e2fc6d67c29614c8de2672
restart: always
networks:
- immich
database:
container_name: immich_postgres
image: tensorchord/pgvecto-rs:pg14-v0.2.0@sha256:90724186f0a3517cf6914295b5ab410db9ce23190a2d9d0b9dd6463e3fa298f0
env_file:
- stack.env
environment:
POSTGRES_PASSWORD: ${DB_PASSWORD}
POSTGRES_USER: ${DB_USERNAME}
POSTGRES_DB: ${DB_DATABASE_NAME}
volumes:
- pgdata:/var/lib/postgresql/data
restart: always
networks:
- immich
volumes:
pgdata:
model-cache:
networks:
immich: