2023-11-21 11:55:08 +00:00
|
|
|
# stack for immich <= v1.87.0
|
|
|
|
|
2023-02-15 21:45:31 +00:00
|
|
|
version: "3.8"
|
|
|
|
|
|
|
|
services:
|
|
|
|
immich-server:
|
|
|
|
container_name: immich-server
|
2023-11-21 10:05:26 +00:00
|
|
|
image: altran1502/immich-server:v1.87.0
|
2023-11-15 12:06:24 +00:00
|
|
|
command: [ "start.sh", "immich" ]
|
2023-02-15 21:45:31 +00:00
|
|
|
volumes:
|
|
|
|
- ${UPLOAD_LOCATION}:/usr/src/app/upload
|
2023-11-15 12:06:24 +00:00
|
|
|
- /etc/localtime:/etc/localtime:ro
|
2023-02-15 21:45:31 +00:00
|
|
|
env_file:
|
|
|
|
- .env
|
|
|
|
environment:
|
|
|
|
- NODE_ENV=production
|
|
|
|
depends_on:
|
2023-02-19 21:09:53 +00:00
|
|
|
- immich-redis
|
|
|
|
- immich-database
|
2023-03-20 19:51:57 +00:00
|
|
|
- immich-typesense
|
2023-02-15 21:45:31 +00:00
|
|
|
restart: unless-stopped
|
|
|
|
#labels:
|
|
|
|
# - "com.centurylinklabs.watchtower.enable=true"
|
2023-08-08 08:05:31 +00:00
|
|
|
#networks:
|
|
|
|
# - proxy
|
2023-02-15 21:45:31 +00:00
|
|
|
|
|
|
|
immich-microservices:
|
|
|
|
container_name: immich-microservices
|
2023-11-21 10:05:26 +00:00
|
|
|
image: altran1502/immich-server:v1.87.0
|
2023-11-15 12:06:24 +00:00
|
|
|
command: [ "start.sh", "microservices" ]
|
2023-02-15 21:45:31 +00:00
|
|
|
volumes:
|
|
|
|
- ${UPLOAD_LOCATION}:/usr/src/app/upload
|
2023-11-15 12:06:24 +00:00
|
|
|
- /etc/localtime:/etc/localtime:ro
|
2023-02-15 21:45:31 +00:00
|
|
|
env_file:
|
|
|
|
- .env
|
|
|
|
environment:
|
|
|
|
- NODE_ENV=production
|
|
|
|
depends_on:
|
2023-02-19 21:09:53 +00:00
|
|
|
- immich-redis
|
|
|
|
- immich-database
|
2023-03-20 19:51:57 +00:00
|
|
|
- immich-typesense
|
2023-02-15 21:45:31 +00:00
|
|
|
restart: unless-stopped
|
|
|
|
#labels:
|
|
|
|
# - "com.centurylinklabs.watchtower.enable=true"
|
2023-08-08 08:05:31 +00:00
|
|
|
#networks:
|
|
|
|
# - proxy
|
2023-03-20 18:27:01 +00:00
|
|
|
|
2023-03-20 19:52:45 +00:00
|
|
|
immich-typesense:
|
2023-03-20 18:27:01 +00:00
|
|
|
container_name: immich-typesense
|
2023-11-15 12:16:53 +00:00
|
|
|
hostname: typesense
|
2023-11-15 12:06:24 +00:00
|
|
|
image: typesense/typesense:0.24.1
|
2023-03-20 18:27:01 +00:00
|
|
|
environment:
|
|
|
|
- TYPESENSE_API_KEY=${TYPESENSE_API_KEY}
|
|
|
|
- TYPESENSE_DATA_DIR=/data
|
2023-11-15 12:06:24 +00:00
|
|
|
# remove this to get debug messages
|
|
|
|
- GLOG_minloglevel=1
|
2023-03-20 18:27:01 +00:00
|
|
|
volumes:
|
|
|
|
- ${TYPESENSE_LOCATION}:/data
|
2023-03-20 20:13:49 +00:00
|
|
|
restart: unless-stopped
|
|
|
|
#labels:
|
2023-08-08 08:05:31 +00:00
|
|
|
# - "com.centurylinklabs.watchtower.enable=true"
|
|
|
|
#networks:
|
|
|
|
# - proxy
|
2023-02-15 21:45:31 +00:00
|
|
|
|
2023-08-08 08:05:31 +00:00
|
|
|
immich-machine-learning:
|
2023-11-21 10:05:26 +00:00
|
|
|
image: altran1502/immich-machine-learning:v1.87.0
|
2023-08-08 08:05:31 +00:00
|
|
|
container_name: immich-ml
|
|
|
|
volumes:
|
|
|
|
- ${UPLOAD_LOCATION}:/usr/src/app/upload
|
|
|
|
- model-cache:/cache
|
|
|
|
env_file:
|
|
|
|
- .env
|
|
|
|
environment:
|
|
|
|
- NODE_ENV=production
|
|
|
|
restart: unless-stopped
|
2023-11-15 12:10:02 +00:00
|
|
|
#labels:
|
|
|
|
# - "com.centurylinklabs.watchtower.enable=true"
|
|
|
|
#networks:
|
|
|
|
# - proxy
|
2023-02-15 21:45:31 +00:00
|
|
|
|
|
|
|
immich-web:
|
2023-11-21 10:05:26 +00:00
|
|
|
image: altran1502/immich-web:v1.87.0
|
2023-02-15 21:45:31 +00:00
|
|
|
container_name: immich-web
|
|
|
|
entrypoint: ["/bin/sh", "./entrypoint.sh"]
|
|
|
|
env_file:
|
|
|
|
- .env
|
|
|
|
restart: unless-stopped
|
|
|
|
#labels:
|
|
|
|
# - "com.centurylinklabs.watchtower.enable=true"
|
2023-08-08 08:05:31 +00:00
|
|
|
#networks:
|
|
|
|
# - proxy
|
2023-02-15 21:45:31 +00:00
|
|
|
|
2023-02-19 21:09:53 +00:00
|
|
|
immich-redis:
|
2023-02-15 21:45:31 +00:00
|
|
|
container_name: immich-redis
|
2023-11-15 12:06:24 +00:00
|
|
|
image: redis:6.2-alpine
|
2023-02-15 21:45:31 +00:00
|
|
|
restart: unless-stopped
|
|
|
|
#labels:
|
|
|
|
# - "com.centurylinklabs.watchtower.enable=true"
|
2023-08-08 08:05:31 +00:00
|
|
|
#networks:
|
|
|
|
# - proxy
|
2023-02-15 21:45:31 +00:00
|
|
|
|
2023-02-19 21:09:53 +00:00
|
|
|
immich-database:
|
2023-02-15 21:45:31 +00:00
|
|
|
container_name: immich-database
|
2023-11-15 12:06:24 +00:00
|
|
|
image: postgres:14-alpine
|
2023-02-15 21:45:31 +00:00
|
|
|
env_file:
|
|
|
|
- .env
|
|
|
|
environment:
|
|
|
|
POSTGRES_PASSWORD: ${DB_PASSWORD}
|
|
|
|
POSTGRES_USER: ${DB_USERNAME}
|
|
|
|
POSTGRES_DB: ${DB_DATABASE_NAME}
|
|
|
|
PG_DATA: /var/lib/postgresql/data
|
|
|
|
volumes:
|
|
|
|
- ${DB_DATABASE_LOCATION}:/var/lib/postgresql/data
|
|
|
|
restart: unless-stopped
|
|
|
|
#labels:
|
|
|
|
# - "com.centurylinklabs.watchtower.enable=true"
|
2023-08-08 08:05:31 +00:00
|
|
|
#networks:
|
|
|
|
# - proxy
|
2023-02-15 21:45:31 +00:00
|
|
|
|
|
|
|
immich-proxy:
|
|
|
|
container_name: immich-proxy
|
2023-11-21 10:05:26 +00:00
|
|
|
image: altran1502/immich-proxy:v1.87.0
|
2023-02-19 05:19:44 +00:00
|
|
|
ports:
|
2023-11-21 11:57:18 +00:00
|
|
|
- 2283:8080 # WEB UI via proxy; do not remove this proxy service, use it! Even if you have your own reverse proxy.
|
2023-02-15 21:45:31 +00:00
|
|
|
depends_on:
|
|
|
|
- immich-server
|
|
|
|
restart: unless-stopped
|
2023-08-08 08:05:31 +00:00
|
|
|
#networks:
|
|
|
|
# - proxy
|
2023-02-15 21:45:31 +00:00
|
|
|
#labels:
|
|
|
|
# - traefik.enable=false
|
|
|
|
# - traefik.http.routers.immich.rule=Host(`immich.example.com`)
|
|
|
|
# - traefik.http.services.immich.loadbalancer.server.port=8080
|
|
|
|
# - traefik.docker.network=proxy
|
|
|
|
# # Part for local lan services only
|
|
|
|
# - traefik.http.routers.immich.middlewares=local-ipwhitelist@file
|
|
|
|
# - "com.centurylinklabs.watchtower.enable=true"
|
2023-03-20 20:44:01 +00:00
|
|
|
|
2023-08-08 08:05:31 +00:00
|
|
|
volumes:
|
|
|
|
model-cache:
|
|
|
|
|
|
|
|
#networks:
|
|
|
|
# proxy:
|
|
|
|
# external: true
|