Skip to content

Commit 315b5f0

Browse files
authored
Merge pull request #5 from tailscale-dev/immich-remote-gpus
remote gpus
2 parents 8c9d411 + 0b2e625 commit 315b5f0

File tree

3 files changed

+105
-0
lines changed

3 files changed

+105
-0
lines changed
Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
---
2+
services:
3+
immich-ts:
4+
image: tailscale/tailscale
5+
container_name: immich-ts
6+
cap_add:
7+
- net_admin
8+
- sys_module
9+
volumes:
10+
- /home/alex/appdata/immich/tailscale/state:/var/lib/tailscale
11+
- /home/alex/appdata/immich/serveconfig:/config
12+
- /dev/net/tun:/dev/net/tun
13+
environment:
14+
- TS_AUTHKEY=tskey-client-kYteCh4oUr11CNTRL-B5pi3HYWquGgWT4HjsLXvGf74x3hEBW4A?ephemeral=false
15+
- TS_EXTRA_ARGS=--advertise-tags=tag:container --reset
16+
- TS_STATE_DIR=/var/lib/tailscale
17+
- TS_SERVE_CONFIG=/config/serve-config.json
18+
- TS_USERSPACE=false
19+
hostname: immich
20+
restart: unless-stopped
21+
immich-server:
22+
container_name: immich_server
23+
image: ghcr.io/immich-app/immich-server:release
24+
command: ["start.sh", "immich"]
25+
network_mode: "service:immich-ts"
26+
volumes:
27+
- /home/alex/appdata/immich/uploads:/usr/src/app/upload
28+
- /home/alex/appdata/immich/images:/photos/images:ro #full
29+
- /etc/localtime:/etc/localtime:ro
30+
env_file:
31+
- .env
32+
depends_on:
33+
- redis
34+
- database
35+
restart: unless-stopped
36+
immich-microservices:
37+
container_name: immich_microservices
38+
image: ghcr.io/immich-app/immich-server:release
39+
command: ["start.sh", "microservices"]
40+
volumes:
41+
- /home/alex/appdata/immich/uploads:/usr/src/app/upload
42+
- /home/alex/appdata/immich/images:/photos/images:ro #full
43+
- /etc/localtime:/etc/localtime:ro
44+
env_file:
45+
- .env
46+
depends_on:
47+
- redis
48+
- database
49+
restart: unless-stopped
50+
redis:
51+
container_name: immich_redis
52+
image: redis:6.2-alpine@sha256:70a7a5b641117670beae0d80658430853896b5ef269ccf00d1827427e3263fa3
53+
restart: unless-stopped
54+
database:
55+
container_name: immich_postgres
56+
image: tensorchord/pgvecto-rs:pg14-v0.2.0@sha256:90724186f0a3517cf6914295b5ab410db9ce23190a2d9d0b9dd6463e3fa298f0
57+
env_file:
58+
- .env
59+
environment:
60+
POSTGRES_PASSWORD: ${DB_PASSWORD}
61+
POSTGRES_USER: ${DB_USERNAME}
62+
POSTGRES_DB: ${DB_DATABASE_NAME}
63+
PG_DATA: /var/lib/postgresql/data
64+
volumes:
65+
- /home/alex/appdata/immich/db:/var/lib/postgresql/data
66+
restart: unless-stopped
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
"TCP": {
3+
"443": {
4+
"HTTPS": true
5+
}
6+
},
7+
"Web": {
8+
"${TS_CERT_DOMAIN}:443": {
9+
"Handlers": {
10+
"/": {
11+
"Proxy": "http://127.0.0.1:3001"
12+
}
13+
}
14+
}
15+
},
16+
"AllowFunnel": {
17+
"${TS_CERT_DOMAIN}:443": false
18+
}
19+
}
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
services:
2+
immich-machine-learning:
3+
container_name: immich_machine_learning
4+
image: ghcr.io/immich-app/immich-machine-learning:release-cuda
5+
deploy:
6+
resources:
7+
reservations:
8+
devices:
9+
- driver: nvidia
10+
count: 1
11+
capabilities:
12+
- gpu
13+
volumes:
14+
- model-cache:/cache
15+
restart: always
16+
ports:
17+
- 3003:3003
18+
19+
volumes:
20+
model-cache:

0 commit comments

Comments
 (0)