docker-compose/immich.yaml

72 lines
1.9 KiB
YAML
Raw Normal View History

2023-11-29 22:23:09 +00:00
version: "3"
services:
immich_server:
container_name: immich-server
image: ghcr.io/immich-app/immich-server:release
command: [ "start.sh", "immich" ]
environment:
- DB_HOSTNAME=immich-postgres
- DB_USERNAME=
- DB_PASSWORD=
- DB_DATABASE_NAME=immich
- REDIS_HOSTNAME=immich-redis
volumes:
- <media directory>/Photos:/usr/src/app/upload
networks:
- immich
2023-11-29 22:23:09 +00:00
ports:
- 2283:3001
depends_on:
- redis
- database
restart: unless-stopped
immich_microservices:
container_name: immich-microservices
image: ghcr.io/immich-app/immich-server:release
command: [ "start.sh", "microservices" ]
environment:
- DB_HOSTNAME=immich-postgres
- DB_USERNAME=
- DB_PASSWORD=
- DB_DATABASE_NAME=immich
- REDIS_HOSTNAME=immich-redis
volumes:
- <media directory>/Photos:/usr/src/app/upload
networks:
- immich
2023-11-29 22:23:09 +00:00
depends_on:
- redis
- database
restart: unless-stopped
immich_ml:
container_name: immich-ml
image: ghcr.io/immich-app/immich-machine-learning:release
volumes:
- <docker directory>/immich/model-cache:/cache
networks:
- immich
2023-11-29 22:23:09 +00:00
restart: unless-stopped
redis:
container_name: immich-redis
image: redis:6.2-alpine@sha256:51d6c56749a4243096327e3fb964a48ed92254357108449cb6e23999c37773c5
networks:
- immich
2023-11-29 22:23:09 +00:00
restart: unless-stopped
database:
container_name: immich-postgres
image: tensorchord/pgvecto-rs:pg14-v0.2.0@sha256:90724186f0a3517cf6914295b5ab410db9ce23190a2d9d0b9dd6463e3fa298f0
2023-11-29 22:23:09 +00:00
environment:
POSTGRES_PASSWORD:
POSTGRES_USER:
POSTGRES_DB:
volumes:
- <docker directory>/immich/postgres:/var/lib/postgresql/data
networks:
- immich
restart: unless-stopped
networks:
immich:
name: immich
ipam:
config:
- subnet: <subnet>