82 lines
1.6 KiB
YAML
82 lines
1.6 KiB
YAML
---
|
|
|
|
immich:
|
|
|
|
instance: immich
|
|
version: v1.88.2
|
|
|
|
server:
|
|
image: ghcr.io/immich-app/immich-server:[[ .immich.version ]]
|
|
|
|
env:
|
|
DB_URL: '{{ with secret "[[ .vault.prefix ]]database/creds/[[ .immich.instance ]]" }}postgres://{{ .Data.username }}:{{ urlquery .Data.password }}@localhost:5432/[[ .immich.instance ]]{{ end }}'
|
|
|
|
resources:
|
|
cpu: 200
|
|
memory: 256
|
|
|
|
wait_for:
|
|
- service: master.[[ .consul.suffix ]]
|
|
|
|
consul:
|
|
connect:
|
|
upstreams:
|
|
- destination_name: postgres[[ .consul.suffix ]]
|
|
local_bind_port: 5432
|
|
|
|
traefik:
|
|
enabled: true
|
|
|
|
microservices:
|
|
|
|
image: ghcr.io/immich-app/immich-server:[[ .immich.version ]]
|
|
|
|
env:
|
|
DB_URL: '{{ with secret "[[ .vault.prefix ]]database/creds/[[ .immich.instance ]]" }}postgres://{{ .Data.username }}:{{ urlquery .Data.password }}@localhost:5432/[[ .immich.instance ]]{{ end }}'
|
|
|
|
resources:
|
|
cpu: 300
|
|
memory: 768
|
|
|
|
machine_learning:
|
|
|
|
image: ghcr.io/immich-app/immich-machine-learning:[[ .immich.version ]]
|
|
|
|
env: {}
|
|
|
|
resources:
|
|
cpu: 100
|
|
memory: 256
|
|
|
|
web:
|
|
|
|
image: ghcr.io/immich-app/immich-web:[[ .immich.version ]]
|
|
|
|
env: {}
|
|
|
|
resources:
|
|
cpu: 50
|
|
memory: 128
|
|
|
|
typesense:
|
|
image: typesense/typesense:latest
|
|
|
|
env: {}
|
|
|
|
resources:
|
|
cpu: 100
|
|
memory: 256
|
|
|
|
volumes:
|
|
data:
|
|
type: csi
|
|
source: '[[ .immich.instance ]]-data'
|
|
|
|
ml:
|
|
type: csi
|
|
source: '[[ .immich.instance ]]-ml'
|
|
|
|
typesense:
|
|
type: csi
|
|
source: '[[ .immich.instance ]]-typesense'
|