-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose-for-heavymetal-immich.yml
246 lines (234 loc) · 9.12 KB
/
docker-compose-for-heavymetal-immich.yml
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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
version: "3.9"
networks:
networks_traefik_proxy:
external: true
immich-family-network:
driver: bridge
immich-private-network:
driver: bridge
services:
immich-machine-learning:
container_name: immich_machine_learning
image: ghcr.io/immich-app/immich-machine-learning:${IMMICH_VERSION:-release}
devices:
- /dev/dri/renderD128 # If using Intel QuickSync or VAAPI
volumes:
- ${APPDATA}/immich/global/model-cache:/cache
restart: always
networks:
- immich-family-network
- immich-private-network
labels:
- dev.dozzle.group=immich-family
immich-family-server:
container_name: immich_family_server
image: ghcr.io/immich-app/immich-server:${IMMICH_VERSION:-release}
command: [ "start.sh", "immich" ]
volumes:
- ${ALBUM_PHOTOS}:/photos/album
- ${USER1_PHOTOS}/2016:/photos/${USER1}/2016
- ${USER1_PHOTOS}/2017:/photos/${USER1}/2017
- ${USER1_PHOTOS}/2018:/photos/${USER1}/2018
- ${USER1_PHOTOS}/2019:/photos/${USER1}/2019
- ${USER1_PHOTOS}/2020:/photos/${USER1}/2020
- ${USER1_PHOTOS}/2021:/photos/${USER1}/2021
- ${USER1_PHOTOS}/2022:/photos/${USER1}/2022
- ${USER1_PHOTOS}/2023:/photos/${USER1}/2023
- ${USER1_PHOTOS}/2024:/photos/${USER1}/2024
- ${USER2_PHOTOS}:/photos/${USER2}
- ${APPDATA}/immich/family/upload:/usr/src/app/upload
- /etc/localtime:/etc/localtime:ro
- /etc/timezone:/etc/timezone:ro
environment:
DB_PASSWORD: ${IMMICH_DB_PASSWORD}
DB_USERNAME: ${IMMICH_DB_USERNAME}
DB_DATABASE_NAME: ${IMMICH_DB_DATABASE_NAME}
DB_HOSTNAME: immich_family_postgres
LOG_LEVEL: verbose
depends_on:
- immich-family-redis
- immich-family-database
restart: always
networks:
- immich-family-network
- networks_traefik_proxy
labels:
- dev.dozzle.group=immich-family
- traefik.enable=true
- traefik.http.routers.immich.rule=Host(`photos.${DOMAIN}`)
- traefik.http.routers.immich.middlewares=quantum_metal-ipallowlist
- traefik.http.routers.immich.tls.certresolver=certificato
- traefik.http.routers.immich.entrypoints=web,web-secure
- traefik.http.services.immich.loadbalancer.server.port=3001
- "traefik.docker.network=networks_traefik_proxy"
- homepage.group=HeavyMetal
- homepage.name=Immich
- homepage.weight=8000
- homepage.icon=immich.png
- homepage.href=https://photos.${DOMAIN}/
- homepage.description=Immich for family
- homepage.widget.type=immich
- homepage.widget.key=${IMMICH_FAMILY_API_KEY}
- homepage.widget.url=https://photos.${DOMAIN}
immich-family-microservices:
container_name: immich_family_microservices
image: ghcr.io/immich-app/immich-server:${IMMICH_VERSION:-release}
devices:
- /dev/dri/renderD128 # If using Intel QuickSync or VAAPI
- /dev/kfd # Remove this device if you don't use the OpenCL tone-mapping
group_add:
- "${RENDER_GROUP_ID}" # Change this to match your "render" host group id (getent group render)
- "${VIDEO_GROUP_ID}" # Change this to match your "video" host group id (getent group video)
command: [ "start.sh", "microservices" ]
environment:
DB_PASSWORD: ${IMMICH_DB_PASSWORD}
DB_USERNAME: ${IMMICH_DB_USERNAME}
DB_DATABASE_NAME: ${IMMICH_DB_DATABASE_NAME}
DB_HOSTNAME: immich_family_postgres
LOG_LEVEL: verbose
LIBVA_DRIVER_NAME: "radeonsi"
volumes:
- ${ALBUM_PHOTOS}:/photos/album
- ${USER1_PHOTOS}/2016:/photos/${USER1}/2016
- ${USER1_PHOTOS}/2017:/photos/${USER1}/2017
- ${USER1_PHOTOS}/2018:/photos/${USER1}/2018
- ${USER1_PHOTOS}/2019:/photos/${USER1}/2019
- ${USER1_PHOTOS}/2020:/photos/${USER1}/2020
- ${USER1_PHOTOS}/2021:/photos/${USER1}/2021
- ${USER1_PHOTOS}/2022:/photos/${USER1}/2022
- ${USER1_PHOTOS}/2023:/photos/${USER1}/2023
- ${USER1_PHOTOS}/2024:/photos/${USER1}/2024
- ${USER2_PHOTOS}:/photos/${USER2}
- ${APPDATA}/immich/family/upload:/usr/src/app/upload
- /etc/localtime:/etc/localtime:ro
- /etc/timezone:/etc/timezone:ro
depends_on:
- immich-family-redis
- immich-family-database
restart: always
networks:
- immich-family-network
labels:
- dev.dozzle.group=immich-family
immich-family-redis:
container_name: immich_family_redis
hostname: redis
image: redis:6.2-alpine@sha256:c5a607fb6e1bb15d32bbcf14db22787d19e428d59e31a5da67511b49bb0f1ccc
command: ["redis-server", "--appendonly", "no", "--maxmemory", "500mb", "--maxmemory-policy", "allkeys-lru"]
restart: always
networks:
- immich-family-network
labels:
- dev.dozzle.group=immich-family
immich-family-database:
container_name: immich_family_postgres
image: tensorchord/pgvecto-rs:pg14-v0.2.0@sha256:90724186f0a3517cf6914295b5ab410db9ce23190a2d9d0b9dd6463e3fa298f0
environment:
POSTGRES_PASSWORD: ${IMMICH_DB_PASSWORD}
POSTGRES_USER: ${IMMICH_DB_USERNAME}
POSTGRES_DB: ${IMMICH_DB_DATABASE_NAME}
volumes:
- ${APPDATA}/immich/family/database:/var/lib/postgresql/data
- /etc/localtime:/etc/localtime:ro
- /etc/timezone:/etc/timezone:ro
restart: always
networks:
- immich-family-network
labels:
- dev.dozzle.group=immich-family
immich-private-server:
container_name: immich_private_server
image: ghcr.io/immich-app/immich-server:${IMMICH_VERSION:-release}
command: [ "start.sh", "immich" ]
volumes:
- ${PRIVATE_USER_GALLERY}:/photos
- ${APPDATA}/immich/private/upload:/usr/src/app/upload
- /etc/localtime:/etc/localtime:ro
- /etc/timezone:/etc/timezone:ro
environment:
DB_PASSWORD: ${IMMICH_DB_PASSWORD}
DB_USERNAME: ${IMMICH_DB_USERNAME}
DB_DATABASE_NAME: ${IMMICH_DB_DATABASE_NAME}
DB_HOSTNAME: immich_private_postgres
LOG_LEVEL: verbose
depends_on:
- immich-private-redis
- immich-private-database
restart: always
networks:
- immich-private-network
- networks_traefik_proxy
labels:
- dev.dozzle.group=immich-private
- traefik.enable=true
- traefik.http.routers.immich-private.rule=Host(`private-viewer.${DOMAIN}`)
- traefik.http.routers.immich-private.tls.certresolver=certificato
- traefik.http.routers.immich-private.entrypoints=web,web-secure
- traefik.http.routers.immich-private.middlewares=private-ipallowlist
- traefik.http.services.immich-private.loadbalancer.server.port=3001
- "traefik.docker.network=networks_traefik_proxy"
- homepage.group=HeavyMetal
- homepage.name=Immich (private)
- homepage.weight=8001
- homepage.icon=immich.png
- homepage.href=https://private-viewer.${DOMAIN}/
- homepage.description=Immich for private
- homepage.widget.type=immich
- homepage.widget.key=${IMMICH_PRIVATE_API_KEY}
- homepage.widget.url=https://private-viewer.${DOMAIN}
immich-private-microservices:
container_name: immich_private_microservices
image: ghcr.io/immich-app/immich-server:${IMMICH_VERSION:-release}
devices:
- /dev/dri/renderD128 # If using Intel QuickSync or VAAPI
- /dev/kfd # Remove this device if you don't use the OpenCL tone-mapping
group_add:
- "${RENDER_GROUP_ID}" # Change this to match your "render" host group id (getent group render)
- "${VIDEO_GROUP_ID}" # Change this to match your "video" host group id (getent group video)
command: [ "start.sh", "microservices" ]
environment:
DB_PASSWORD: ${IMMICH_DB_PASSWORD}
DB_USERNAME: ${IMMICH_DB_USERNAME}
DB_DATABASE_NAME: ${IMMICH_DB_DATABASE_NAME}
DB_HOSTNAME: immich_private_postgres
LOG_LEVEL: verbose
LIBVA_DRIVER_NAME: "radeonsi"
volumes:
- ${PRIVATE_USER_GALLERY}:/photos
- ${APPDATA}/immich/private/upload:/usr/src/app/upload
- /etc/localtime:/etc/localtime:ro
- /etc/timezone:/etc/timezone:ro
depends_on:
- immich-private-redis
- immich-private-database
restart: always
networks:
- immich-private-network
labels:
- dev.dozzle.group=immich-private
immich-private-redis:
container_name: immich_private_redis
hostname: redis
image: redis:6.2-alpine@sha256:c5a607fb6e1bb15d32bbcf14db22787d19e428d59e31a5da67511b49bb0f1ccc
restart: always
command: ["redis-server", "--appendonly", "no", "--maxmemory", "500mb", "--maxmemory-policy", "allkeys-lru"]
networks:
- immich-private-network
labels:
- dev.dozzle.group=immich-private
immich-private-database:
container_name: immich_private_postgres
image: tensorchord/pgvecto-rs:pg14-v0.2.0@sha256:90724186f0a3517cf6914295b5ab410db9ce23190a2d9d0b9dd6463e3fa298f0
environment:
POSTGRES_PASSWORD: ${IMMICH_DB_PASSWORD}
POSTGRES_USER: ${IMMICH_DB_USERNAME}
POSTGRES_DB: ${IMMICH_DB_DATABASE_NAME}
volumes:
- ${APPDATA}/immich/private/database:/var/lib/postgresql/data
- /etc/localtime:/etc/localtime:ro
- /etc/timezone:/etc/timezone:ro
restart: always
networks:
- immich-private-network
labels:
- dev.dozzle.group=immich-private