-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy pathdocker-compose-immich.yml
More file actions
56 lines (51 loc) · 2.33 KB
/
docker-compose-immich.yml
File metadata and controls
56 lines (51 loc) · 2.33 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
#------------------------------------------------
# Example Immich docker-compose.yml modifications for same-host setup
#
# IMPORTANT: This file only shows the parts you need to pay attention to.
# Use your official Immich docker-compose.yml and apply these modifications.
# https://github.com/immich-app/immich/releases/latest/download/docker-compose.yml
#
# WARNING: This is the same-host version
#------------------------------------------------
name: immich
services:
immich-server:
container_name: immich_server
volumes:
# For Immich >= 2.0 (use this if you're on Immich 2.0 or later):
- ${UPLOAD_LOCATION}:/data
# For Immich < 2.0 (comment the line above and uncomment this if you're on older Immich):
# - ${UPLOAD_LOCATION}:/usr/src/app/upload
immich-machine-learning:
container_name: immich_ml
redis:
container_name: immich_redis
database:
container_name: immich_postgres
# ports:
# - "5433:5432"
#------------------------------------------------
# Modification 1: Add networks to enable communication with immich-deduper
#------------------------------------------------
networks:
- immich-deduper
#------------------------------------------------
# Note: On some Docker environments, you might need to add '- default' to keep
# the database in both the default network and immich-deduper network.
# This ensures other Immich services can still connect to the database.
# See: https://github.com/RazgrizHsu/immich-deduper/issues/30
#------------------------------------------------
# - default # Uncomment if Immich services cannot connect to the database
#------------------------------------------------
# Modification 2: Add global networks section to declare external network usage
#------------------------------------------------
networks:
immich-deduper:
external: true
#------------------------------------------------
# Note: On some Docker environments, you might need to add '- default' to keep
# the database in both the default network and immich-deduper network.
# This ensures other Immich services can still connect to the database.
# See: https://github.com/RazgrizHsu/immich-deduper/issues/30
#------------------------------------------------
#default # Uncomment if Immich services cannot connect to the database