70 lines
1.7 KiB
YAML
70 lines
1.7 KiB
YAML
---
|
|
version: "3.8"
|
|
|
|
services:
|
|
app:
|
|
image: ghcr.io/immich-app/immich-server:v1.131.3
|
|
volumes:
|
|
- uploads:/usr/src/app/upload
|
|
- /etc/localtime:/etc/localtime:ro
|
|
environment:
|
|
- UPLOAD_LOCATION
|
|
- DB_DATA_LOCATION
|
|
- TZ
|
|
- IMMICH_VERSION
|
|
- DB_PASSWORD
|
|
- DB_USERNAME
|
|
- DB_DATABASE_NAME
|
|
networks:
|
|
- proxy
|
|
- backend
|
|
healthcheck:
|
|
disable: false
|
|
deploy:
|
|
labels:
|
|
- "traefik.enable=true"
|
|
- "traefik.http.services.${STACK_NAME}.loadbalancer.server.port=2283"
|
|
- "traefik.http.routers.${STACK_NAME}.rule=Host(`${DOMAIN}`${EXTRA_DOMAINS})"
|
|
- "traefik.http.routers.${STACK_NAME}.entrypoints=web-secure"
|
|
- "traefik.http.routers.${STACK_NAME}.tls.certresolver=${LETS_ENCRYPT_ENV}"
|
|
- "coop-cloud.${STACK_NAME}.version=0.1.3+v1.131.3"
|
|
|
|
|
|
immich-machine-learning: # TODO: this has to be that name, as the frontend tries to reach it at: http://immich-machine-learning:3003
|
|
image: ghcr.io/immich-app/immich-machine-learning:v1.131.3
|
|
ports:
|
|
- 3003:3003
|
|
volumes:
|
|
- model-cache:/cache
|
|
networks:
|
|
- backend
|
|
healthcheck:
|
|
disable: false
|
|
redis:
|
|
image: redis:7.4-alpine
|
|
healthcheck:
|
|
test: redis-cli ping || exit 1
|
|
networks:
|
|
- backend
|
|
database:
|
|
image: tensorchord/pgvecto-rs:pg14-v0.2.0
|
|
environment:
|
|
POSTGRES_PASSWORD: ${DB_PASSWORD}
|
|
POSTGRES_USER: ${DB_USERNAME}
|
|
POSTGRES_DB: ${DB_DATABASE_NAME}
|
|
POSTGRES_INITDB_ARGS: '--data-checksums'
|
|
volumes:
|
|
- postgres:/var/lib/postgresql/data
|
|
networks:
|
|
- backend
|
|
|
|
networks:
|
|
proxy:
|
|
external: true
|
|
backend:
|
|
|
|
volumes:
|
|
uploads:
|
|
postgres:
|
|
model-cache:
|