docker-compose.yml
· 2.7 KiB · YAML
Raw
services:
redis:
image: redis:6
container_name: immich_redis
restart: always
networks:
- immich
database:
image: postgres:14
container_name: immich_db
restart: always
environment:
POSTGRES_PASSWORD: postgres
POSTGRES_USER: postgres
POSTGRES_DB: immich
volumes:
- pgdata:/var/lib/postgresql/data
networks:
- immich
immich-server:
image: ghcr.io/immich-app/immich-server:release
container_name: immich_server
restart: always
depends_on:
- redis
- database
environment:
DB_PASSWORD: postgres
DB_USERNAME: postgres
DB_DATABASE_NAME: immich
DB_HOSTNAME: database
REDIS_HOSTNAME: redis
IMMICH_WEB_URL: https://bm.itfolks.co.uk
labels:
- "traefik.enable=true"
- "traefik.http.routers.immich.rule=Host(`bm.itfolks.co.uk`)"
- "traefik.http.routers.immich.entrypoints=websecure"
- "traefik.http.routers.immich.tls.certresolver=myresolver"
- "traefik.http.services.immich.loadbalancer.server.port=2283"
networks:
- immich
- traefik
# immich-web:
# image: ghcr.io/immich-app/immich-web:release
# container_name: immich_web
# restart: always
# depends_on:
# - immich-server
# labels:
# - "traefik.enable=true"
# - "traefik.http.routers.immich-web.rule=Host(`bm.itfolks.co.uk`)"
# - "traefik.http.routers.immich-web.entrypoints=websecure"
# - "traefik.http.routers.immich-web.tls.certresolver=myresolver"
# - "traefik.http.services.immich-web.loadbalancer.server.port=3000"
# networks:
# - immich
# - traefik
immich-machine-learning:
container_name: immich_machine_learning
# For hardware acceleration, add one of -[armnn, cuda, rocm, openvino, rknn] to the image tag.
# Example tag: ${IMMICH_VERSION:-release}-cuda
image: ghcr.io/immich-app/immich-machine-learning:${IMMICH_VERSION:-release}
# extends: # uncomment this section for hardware acceleration - see https://immich.app/docs/features/ml-hardware-acceleration
# file: hwaccel.ml.yml
# service: cpu # set to one of [armnn, cuda, rocm, openvino, openvino-wsl, rknn] for accelerated inference - use the `-wsl` version for WSL2 where applicable
volumes:
- model-cache:/cache
environment:
DB_PASSWORD: postgres
DB_USERNAME: postgres
DB_DATABASE_NAME: immich
DB_HOSTNAME: database
REDIS_HOSTNAME: redis
restart: always
networks:
- immich
healthcheck:
disable: false
volumes:
pgdata:
model-cache:
networks:
immich:
traefik:
external: true
| 1 | services: |
| 2 | redis: |
| 3 | image: redis:6 |
| 4 | container_name: immich_redis |
| 5 | restart: always |
| 6 | networks: |
| 7 | - immich |
| 8 | database: |
| 9 | image: postgres:14 |
| 10 | container_name: immich_db |
| 11 | restart: always |
| 12 | environment: |
| 13 | POSTGRES_PASSWORD: postgres |
| 14 | POSTGRES_USER: postgres |
| 15 | POSTGRES_DB: immich |
| 16 | volumes: |
| 17 | - pgdata:/var/lib/postgresql/data |
| 18 | networks: |
| 19 | - immich |
| 20 | immich-server: |
| 21 | image: ghcr.io/immich-app/immich-server:release |
| 22 | container_name: immich_server |
| 23 | restart: always |
| 24 | depends_on: |
| 25 | - redis |
| 26 | - database |
| 27 | environment: |
| 28 | DB_PASSWORD: postgres |
| 29 | DB_USERNAME: postgres |
| 30 | DB_DATABASE_NAME: immich |
| 31 | DB_HOSTNAME: database |
| 32 | REDIS_HOSTNAME: redis |
| 33 | IMMICH_WEB_URL: https://bm.itfolks.co.uk |
| 34 | labels: |
| 35 | - "traefik.enable=true" |
| 36 | - "traefik.http.routers.immich.rule=Host(`bm.itfolks.co.uk`)" |
| 37 | - "traefik.http.routers.immich.entrypoints=websecure" |
| 38 | - "traefik.http.routers.immich.tls.certresolver=myresolver" |
| 39 | - "traefik.http.services.immich.loadbalancer.server.port=2283" |
| 40 | networks: |
| 41 | - immich |
| 42 | - traefik |
| 43 | # immich-web: |
| 44 | # image: ghcr.io/immich-app/immich-web:release |
| 45 | # container_name: immich_web |
| 46 | # restart: always |
| 47 | # depends_on: |
| 48 | # - immich-server |
| 49 | # labels: |
| 50 | # - "traefik.enable=true" |
| 51 | # - "traefik.http.routers.immich-web.rule=Host(`bm.itfolks.co.uk`)" |
| 52 | # - "traefik.http.routers.immich-web.entrypoints=websecure" |
| 53 | # - "traefik.http.routers.immich-web.tls.certresolver=myresolver" |
| 54 | # - "traefik.http.services.immich-web.loadbalancer.server.port=3000" |
| 55 | # networks: |
| 56 | # - immich |
| 57 | # - traefik |
| 58 | immich-machine-learning: |
| 59 | container_name: immich_machine_learning |
| 60 | # For hardware acceleration, add one of -[armnn, cuda, rocm, openvino, rknn] to the image tag. |
| 61 | # Example tag: ${IMMICH_VERSION:-release}-cuda |
| 62 | image: ghcr.io/immich-app/immich-machine-learning:${IMMICH_VERSION:-release} |
| 63 | # extends: # uncomment this section for hardware acceleration - see https://immich.app/docs/features/ml-hardware-acceleration |
| 64 | # file: hwaccel.ml.yml |
| 65 | # service: cpu # set to one of [armnn, cuda, rocm, openvino, openvino-wsl, rknn] for accelerated inference - use the `-wsl` version for WSL2 where applicable |
| 66 | volumes: |
| 67 | - model-cache:/cache |
| 68 | environment: |
| 69 | DB_PASSWORD: postgres |
| 70 | DB_USERNAME: postgres |
| 71 | DB_DATABASE_NAME: immich |
| 72 | DB_HOSTNAME: database |
| 73 | REDIS_HOSTNAME: redis |
| 74 | restart: always |
| 75 | networks: |
| 76 | - immich |
| 77 | healthcheck: |
| 78 | disable: false |
| 79 | |
| 80 | volumes: |
| 81 | pgdata: |
| 82 | model-cache: |
| 83 | |
| 84 | networks: |
| 85 | immich: |
| 86 | traefik: |
| 87 | external: true |