2023-07-19 06:41:02 +02:00
|
|
|
version: "3.8"
|
|
|
|
|
2023-11-10 04:43:21 +02:00
|
|
|
name: immich-prod
|
|
|
|
|
2023-11-18 06:13:36 +02:00
|
|
|
x-server-build: &server-common
|
|
|
|
image: immich-server:latest
|
|
|
|
build:
|
|
|
|
context: ../
|
|
|
|
dockerfile: server/Dockerfile
|
|
|
|
volumes:
|
|
|
|
- ${UPLOAD_LOCATION}/photos:/usr/src/app/upload
|
|
|
|
- /etc/localtime:/etc/localtime:ro
|
|
|
|
env_file:
|
|
|
|
- .env
|
|
|
|
restart: always
|
|
|
|
|
2023-07-19 06:41:02 +02:00
|
|
|
services:
|
|
|
|
immich-server:
|
|
|
|
container_name: immich_server
|
2023-11-07 18:34:03 +02:00
|
|
|
command: [ "./start-server.sh" ]
|
2023-11-18 06:13:36 +02:00
|
|
|
<<: *server-common
|
|
|
|
ports:
|
|
|
|
- 2283:3001
|
2023-07-19 06:41:02 +02:00
|
|
|
depends_on:
|
|
|
|
- redis
|
|
|
|
- database
|
|
|
|
|
|
|
|
immich-microservices:
|
|
|
|
container_name: immich_microservices
|
2023-11-18 06:13:36 +02:00
|
|
|
command: [ "./start-microservices.sh" ]
|
|
|
|
<<: *server-common
|
2023-08-02 03:56:10 +02:00
|
|
|
# extends:
|
|
|
|
# file: hwaccel.yml
|
|
|
|
# service: hwaccel
|
2023-07-19 06:41:02 +02:00
|
|
|
depends_on:
|
2023-11-18 06:13:36 +02:00
|
|
|
- redis
|
2023-07-19 06:41:02 +02:00
|
|
|
- database
|
|
|
|
- immich-server
|
|
|
|
|
2023-11-07 18:34:03 +02:00
|
|
|
immich-machine-learning:
|
|
|
|
container_name: immich_machine_learning
|
|
|
|
image: immich-machine-learning:latest
|
|
|
|
build:
|
|
|
|
context: ../machine-learning
|
|
|
|
dockerfile: Dockerfile
|
|
|
|
volumes:
|
|
|
|
- model-cache:/cache
|
|
|
|
env_file:
|
|
|
|
- .env
|
|
|
|
restart: always
|
|
|
|
|
2023-07-19 06:41:02 +02:00
|
|
|
redis:
|
|
|
|
container_name: immich_redis
|
2023-12-11 18:38:26 +02:00
|
|
|
image: redis:6.2-alpine@sha256:b6124ab2e45cc332e16398022a411d7e37181f21ff7874835e0180f56a09e82a
|
2023-07-19 06:41:02 +02:00
|
|
|
restart: always
|
|
|
|
|
|
|
|
database:
|
|
|
|
container_name: immich_postgres
|
2023-12-08 21:38:45 +02:00
|
|
|
image: tensorchord/pgvecto-rs:pg14-v0.1.11@sha256:0335a1a22f8c5dd1b697f14f079934f5152eaaa216c09b61e293be285491f8ee
|
2023-07-19 06:41:02 +02:00
|
|
|
env_file:
|
|
|
|
- .env
|
|
|
|
environment:
|
|
|
|
POSTGRES_PASSWORD: ${DB_PASSWORD}
|
|
|
|
POSTGRES_USER: ${DB_USERNAME}
|
|
|
|
POSTGRES_DB: ${DB_DATABASE_NAME}
|
|
|
|
volumes:
|
2023-11-07 18:34:03 +02:00
|
|
|
- ${UPLOAD_LOCATION}/postgres:/var/lib/postgresql/data
|
2023-07-19 06:41:02 +02:00
|
|
|
restart: always
|
|
|
|
|
|
|
|
volumes:
|
|
|
|
model-cache:
|