Compose-Examples/examples/immich/docker-compose.yml

87 lines
2.6 KiB
YAML
Raw Normal View History

2023-12-16 04:12:16 +00:00
version: "3.8"
services:
immich-server:
container_name: immich-server
2024-03-08 01:03:56 +00:00
image: altran1502/immich-server:${IMMICH_VERSION:-release}
2023-12-16 04:12:16 +00:00
volumes:
- ${UPLOAD_LOCATION}:/usr/src/app/upload
- /etc/localtime:/etc/localtime:ro
env_file:
- .env
environment:
- NODE_ENV=production
ports:
2024-10-15 15:47:30 +00:00
- 2283:2283
2023-12-16 04:12:16 +00:00
expose:
2024-10-15 15:47:30 +00:00
- 2283
2023-12-16 04:12:16 +00:00
depends_on:
- immich-redis
- immich-database
restart: unless-stopped
#networks:
# - proxy
#labels:
# - traefik.enable=false
# - traefik.http.routers.immich.rule=Host(`immich.example.com`)
2024-10-15 15:47:30 +00:00
# - traefik.http.services.immich.loadbalancer.server.port=2283
2023-12-16 04:12:16 +00:00
# - traefik.docker.network=proxy
# # Optional part for file upload max sizes
# - traefik.http.middlewares.limit.buffering.maxRequestBodyBytes=5000000000 # optional, only necessary for file uploads; allow 5000MB
# - traefik.http.middlewares.limit.buffering.maxResponseBodyBytes=5000000000 # optional, only necessary for file uploads; allow 5000MB
# - traefik.http.middlewares.limit.buffering.memRequestBodyBytes=5000000000 # optional, only necessary for file uploads; allow 5000MB
# - traefik.http.middlewares.limit.buffering.memResponseBodyBytes=5000000000 # optional, only necessary for file uploads; allow 5000MB
2023-12-16 04:12:16 +00:00
# # Part for local lan services only
# - traefik.http.routers.immich.middlewares=local-ipwhitelist@file
# - "com.centurylinklabs.watchtower.enable=true"
immich-machine-learning:
2024-03-08 01:03:56 +00:00
image: altran1502/immich-machine-learning:${IMMICH_VERSION:-release}
2023-12-16 04:12:16 +00:00
container_name: immich-ml
volumes:
- ${UPLOAD_LOCATION}:/usr/src/app/upload
- model-cache:/cache
env_file:
- .env
environment:
- NODE_ENV=production
restart: unless-stopped
#labels:
# - "com.centurylinklabs.watchtower.enable=true"
#networks:
# - proxy
immich-redis:
container_name: immich-redis
image: redis:6.2-alpine
restart: unless-stopped
#labels:
# - "com.centurylinklabs.watchtower.enable=true"
#networks:
# - proxy
immich-database:
container_name: immich-database
image: tensorchord/pgvecto-rs:pg14-v0.2.0
2023-12-16 04:12:16 +00:00
env_file:
- .env
environment:
POSTGRES_PASSWORD: ${DB_PASSWORD}
POSTGRES_USER: ${DB_USERNAME}
POSTGRES_DB: ${DB_DATABASE_NAME}
PG_DATA: /var/lib/postgresql/data
volumes:
- ${DB_DATABASE_LOCATION}:/var/lib/postgresql/data
restart: unless-stopped
#labels:
# - "com.centurylinklabs.watchtower.enable=true"
#networks:
# - proxy
volumes:
model-cache:
#networks:
# proxy:
# external: true