mirror of
https://gitlab.sectorq.eu/home/docker-compose.git
synced 2025-12-14 10:24:53 +01:00
86 lines
2.4 KiB
YAML
86 lines
2.4 KiB
YAML
services:
|
|
server:
|
|
image: ${DOCKER_REGISTRY:-}ghcr.io/immich-app/immich-server:${IMMICH_VERSION:-release}
|
|
# devices:
|
|
# - /dev/dri:/dev/dri
|
|
# group_add:
|
|
# - video
|
|
# - 993
|
|
volumes:
|
|
- ${UPLOAD_LOCATION}:/data
|
|
- /etc/localtime:/etc/localtime:ro
|
|
- /media/nas/photo:/mnt/photos2
|
|
env_file:
|
|
- .env
|
|
ports:
|
|
- target: 2283
|
|
published: 2283
|
|
protocol: tcp
|
|
mode: ingress
|
|
healthcheck:
|
|
disable: false
|
|
deploy:
|
|
labels:
|
|
homepage.container: immich_server
|
|
homepage.description: Photo server
|
|
homepage.group: Media
|
|
homepage.href: https://${APPNAME}.sectorq.eu
|
|
homepage.icon: ${APPNAME}.png
|
|
homepage.name: Immich
|
|
homepage.server: my-docker-swarm
|
|
homepage.widget.key: mdaRNyiY19w9YEz3MXT3fiPD9XH3CtQYRM26C0wZJM
|
|
homepage.widget.type: ${APPNAME}
|
|
homepage.widget.url: https://${APPNAME}.sectorq.eu
|
|
homepage.widget.version: '2'
|
|
wud.watch: 'true'
|
|
wud.watch.digest: 'true'
|
|
replicas: 1
|
|
placement:
|
|
constraints:
|
|
- node.role == manager
|
|
machine-learning:
|
|
image: ${DOCKER_REGISTRY:-}ghcr.io/immich-app/immich-machine-learning:${IMMICH_VERSION:-release}
|
|
# device_cgroup_rules:
|
|
# - 'c 189:* rmw'
|
|
# devices:
|
|
# - /dev/dri:/dev/dri
|
|
volumes:
|
|
- model-cache:/cache
|
|
- /dev/bus/usb:/dev/bus/usb
|
|
env_file:
|
|
- .env
|
|
healthcheck:
|
|
disable: false
|
|
deploy:
|
|
replicas: 1
|
|
placement:
|
|
constraints:
|
|
- node.role == manager
|
|
redis:
|
|
image: ${DOCKER_REGISTRY:-}docker.io/valkey/valkey:8-bookworm@sha256:fea8b3e67b15729d4bb70589eb03367bab9ad1ee89c876f54327fc7c6e618571
|
|
healthcheck:
|
|
test: redis-cli ping || exit 1
|
|
deploy:
|
|
replicas: 1
|
|
placement:
|
|
constraints:
|
|
- node.role == manager
|
|
database:
|
|
image: ${DOCKER_REGISTRY:-}ghcr.io/immich-app/postgres:14-vectorchord0.4.3-pgvectors0.2.0@sha256:bcf63357191b76a916ae5eb93464d65c07511da41e3bf7a8416db519b40b1c23
|
|
environment:
|
|
POSTGRES_PASSWORD: ${DB_PASSWORD}
|
|
POSTGRES_USER: ${DB_USERNAME}
|
|
POSTGRES_DB: ${DB_DATABASE_NAME}
|
|
POSTGRES_INITDB_ARGS: --data-checksums
|
|
volumes:
|
|
- db:/var/lib/postgresql/data
|
|
shm_size: 128mb
|
|
deploy:
|
|
replicas: 1
|
|
placement:
|
|
constraints:
|
|
- node.role == manager
|
|
volumes:
|
|
model-cache: null
|
|
db: null
|