You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

110 lines
3.4 KiB

version: "3.7"
x-environment: &env
NODE_ENV: "production"
DB_HOSTNAME: "immich_postgres_1"
DB_USERNAME: &db_username "immich"
DB_PASSWORD: &db_password "moneyprintergobrrr"
DB_DATABASE_NAME: &db_database_name "immich"
REDIS_HOSTNAME: "immich_redis_1"
LOG_LEVEL: "simple"
JWT_SECRET: ${APP_SEED}
DISABLE_REVERSE_GEOCODING: "false"
REVERSE_GEOCODING_PRECISION: "3"
PUBLIC_LOGIN_PAGE_MESSAGE: ""
TYPESENSE_API_KEY: &typesense_api_key "any-text-for-self-hosted-typesense"
IMMICH_SERVER_URL: &immich_server_url "http://immich_server_1:3001"
IMMICH_WEB_URL: &immich_web_url "http://immich_web_1:3000"
IMMICH_MACHINE_LEARNING_URL: "http://immich_machine-learning_1:3003"
services:
app_proxy:
environment:
APP_HOST: immich_proxy_1
APP_PORT: 8080
PROXY_AUTH_WHITELIST: "/api/*,/search/*"
server:
image: altran1502/immich-server:v1.61.0@sha256:c04710ed178b8418bf67ef9e069f5ecc3104955fa54f279fb91941786681a355
entrypoint: ["/bin/sh", "./start-server.sh"]
volumes:
- ${APP_DATA_DIR}/data/upload:/usr/src/app/upload
environment:
<<: *env
depends_on:
- redis
- postgres
- typesense
restart: on-failure
microservices:
image: altran1502/immich-server:v1.61.0@sha256:c04710ed178b8418bf67ef9e069f5ecc3104955fa54f279fb91941786681a355
# This service cannot run under 1000:1000
# And because the uploads are shared
# We'll run immich specific services as root
entrypoint: ["/bin/sh", "./start-microservices.sh"]
volumes:
- ${APP_DATA_DIR}/data/upload:/usr/src/app/upload
environment:
<<: *env
depends_on:
- redis
- postgres
- typesense
restart: on-failure
machine-learning:
image: altran1502/immich-machine-learning:v1.61.0@sha256:c86e77729444f9da4e97af9e392359afa24e201b0003dafe0f1f769f263095f1
volumes:
- ${APP_DATA_DIR}/data/upload:/usr/src/app/upload
- ${APP_DATA_DIR}/data/model-cache:/cache
environment:
<<: *env
depends_on:
- postgres
restart: on-failure
web:
image: altran1502/immich-web:v1.61.0@sha256:7d631ccb35ef45a1dd80706ea9f2532fbb865e7dbb8eb3c322bb893a306780c2
entrypoint: ["/bin/sh", "./entrypoint.sh"]
environment:
<<: *env
restart: on-failure
typesense:
image: typesense/typesense:0.24.0@sha256:3cc1251f09ef6c75a5b1f2751c04e7265c770c0f2b69cba1f9a9f20da57cfa28
environment:
TYPESENSE_API_KEY: *typesense_api_key
TYPESENSE_DATA_DIR: "/data"
volumes:
- ${APP_DATA_DIR}/data/tsdata:/data
restart: on-failure
proxy:
image: altran1502/immich-proxy:v1.61.0@sha256:3f5802339c86e2aeae463b2d6ef5a2014805b0aba3818b91b05dab59766fef78
environment:
IMMICH_SERVER_URL: *immich_server_url
IMMICH_WEB_URL: *immich_web_url
depends_on:
- server
restart: on-failure
redis:
image: redis:6.2-bullseye@sha256:ffd3d04c8f7832ccdda89616ebaf3cb38414b645ebbf76dbef1fc9c36a72a2d1
user: "1000:1000"
restart: on-failure
volumes:
- ${APP_DATA_DIR}/data/redis:/data
postgres:
image: postgres:14-bullseye@sha256:135c62a8134dcef829a1e4f5568bfae44bcfa2c75659ff948f43c71964366aa4
user: "1000:1000"
environment:
<<: *env
POSTGRES_PASSWORD: *db_password
POSTGRES_USER: *db_username
POSTGRES_DB: *db_database_name
PG_DATA: /var/lib/postgresql/data
volumes:
- ${APP_DATA_DIR}/data/postgres:/var/lib/postgresql/data
restart: on-failure