-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcompose.yaml
59 lines (57 loc) · 2 KB
/
compose.yaml
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
name: "immich"
services:
share-proxy:
image: "11notes/immich-share-proxy:1.4.2"
container_name: "immich.share-proxy"
environment:
TZ: "Europe/Zurich"
IMMICH_URL: "http://server:2283"
IMMICH_API_KEY: "dse53b342dst4552c345235v345v2345v23b2345b3253"
LIGHT_GALLERY_CONFIG: |-
{
"ipp": {
"responseHeaders": {
"Cache-Control": "public, max-age=2592000"
},
"singleImageGallery": false,
"singleItemAutoOpen": true,
"downloadOriginalPhoto": true
},
"lightGallery": {
"controls": true,
"download": true,
"mobileSettings": {
"controls": false,
"showCloseIcon": true,
"download": true
}
}
}
ports:
- "3000:3000/tcp"
# same FQDN (photos.domain.com) as Immich itself but only on path /share
labels:
- "traefik/http/routers/photos.domain.com-share/entrypoints=https"
- "traefik/http/routers/photos.domain.com-share/tls=true"
- "traefik/http/routers/photos.domain.com-share/rule=(Host(`photos.domain.com`)&&PathPrefix(`/share`))"
- "traefik/http/routers/photos.domain.com-share/service=photos.domain.com-share"
- "traefik/http/services/photos.domain.com-share/loadbalancer/servers/0/url=http://share-proxy:3000"
networks:
frontend:
restart: "always"
server:
image: "ghcr.io/immich-app/immich-server:v1.118.2"
container_name: "immich"
ports:
- "2283:2283/tcp"
labels:
- "traefik/http/routers/photos.domain.com/entrypoints=https"
- "traefik/http/routers/photos.domain.com/tls=true"
- "traefik/http/routers/photos.domain.com/rule=(Host(`photos.domain.com`))"
- "traefik/http/routers/photos.domain.com/service=photos.domain.com"
- "traefik/http/services/photos.domain.com/loadbalancer/servers/0/url=http://server:2283"
networks:
frontend:
restart: "always"
networks:
frontend: